| ![]() |
| ![]() |
| r1.6 > r1.5 > r1.4 |
| ![]() |
| MyCo.MyTopic |
Webs: Myco | Main | TWiki | Sandbox |
| Changes | Index | Search | Go | ||
| MyCo.MyTopic |
Webs: Myco | Main | TWiki | Sandbox |
| Changes | Index | Search | Go | ||
| Edit | Attach | Diffs | r1.2 > r1.1 | More | |
| Revision r1.2 - 13 Feb 2004 - 09:09 GMT - TWikiPresenter |
Copyright © 1999-2009 by the contributing authors.
All material on this collaboration platform is the property of the contributing authors. Ideas, requests, problems regarding RepRap? Send feedback |
the world is an OblateSpheroid
_Everyone_ *knows* that =the world= is an OblateSpheroid
Actually it is perfectly and absolutely flat_Actually_ it is *perfectly* and __absolutely__ flat| You type | You see |
|---|---|
---+ This is a heading | This is a heading |
---++ And so is this | And so is this |
like this | You type | You see |
|---|---|
* Bullet * Sub-bullet |
|
1
| Cat | Feline |
| Bear | Ursine |
| Wolf | Vulpine |
| Cat | Feline |
| Bear | Ursine |
| Wolf | Vulpine |
[[BumpyWords][bumpy words]] appears as bumpy words
[[http://www..google.com][google]] appears as google
<nop>
<nop>_word_ appears as _word_
Attachment ![]() |
Action | Size | Date | Who | Comment |
|---|---|---|---|---|---|
|
|
manage | 9.6 K | 13 Feb 2004 - 18:41 | MushroomMagicMan | Attached image file |
%ATTACHURL%/myco.gif to see this: /pub/TWiki/ATasteOfTWiki/myco.gif
%SEARCH{"CategoryWeather" nosearch="on" nosummary="on"}%
%ACTION...
%CALENDAR...%
%COMMENT...
%CHART...
%EDITTABLE...
%RENDERLIST...
%SLIDESHOWSTART...
%CALC...
%TABLE...
%DRAWING...
| %SLIDETITLE% | |
|
|
%SLIDETEXT% |
|
%SLIDENAVFIRST% %SLIDENAVPREV%
Slide %SLIDENUM% of %SLIDEMAX%
%SLIDENAVNEXT% %SLIDENAVLAST% Copyright © 2009 by the contributing authors |
|
configure, make, etc. This is often not necessary on Linux or Windows.
mc -ac and ESC 1 to get help.
-- TWiki:Main.RichardDonkin - 27 Apr 2002 | Web | Tools | Use to... |
|---|---|---|
| Main | | ...get a first-hand feel for TWiki possibilities. |
| Sandbox | | ...experiment in an unrestricted hands-on web. |
| TWiki | | ...discover TWiki details, and how to start your own site. |
| This table is updated automatically based on WebPreferences settings of the individual webs. | ||
| Legend: |
|
|
|
|
|
|
|
|
|
|
*_text_* as bold italic text.
"$SUM( $ABOVE() )" to tables located in Reprap topics.
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
:-) for
or :cool: for
$siteLocale setting in TWiki.cfg - this enables you to have a slightly different spelling of the character set in the server locale (e.g. 'eucjp') and the HTTP header sent to the browser (e.g. 'euc-jp').
This feature should also support use of Mozilla Browser with TWiki:Codev.TWikiOnMainframe (as long as mainframe web server can convert or pass through UTF-8 URLs) - however, this specific combination is not tested. Other browser-server combinations should not have any problems.
Please note that use of UTF-8 as the site character set is not yet supported - see Phase 2 of TWiki:Codev.ProposedUTF8SupportForI18N for plans and work to date in this area.
This feature is complete in TWiki releases newer than February 2004.
Note for skin developers: %INTURLENCODE% is no longer required (TWiki:Plugins.InternationalisingYourSkin).
$siteCharset (from the TWiki.cfg locale setting), using modules such as CPAN:Encode if needed.
TWiki generates the whole page in the site charset, e.g. ISO-8859-1 or EUC-JP, but the browser dynamically UTF-8 encodes the attachment's URL when it's used. Since Apache serves attachment downloads without TWiki being involved, TWiki's code can't do its UTF-8 decoding trick, so TWiki URL-encodes such URLs in ISO-8859-1 or whatever when generating the page, to bypass this URL encoding, ensuring that the URLs and filenames seen by Apache remain in the site charset.
TWiki:Codev.TWikiOnMainframe uses EBCDIC web servers that typically translate their output to ASCII, UTF-8 or ISO-8859-1 (and URLs in the other direction) since there are so few EBCDIC web browsers. Such web servers don't work with even ISO-8859-1 URLs if they are URL encoded, since the automated translation is bypassed for URL-encoded characters. For TWiki on Mainframe, TWiki assumes that the web server will automatically translate UTF-8 URLs into EBCDIC URLs, as long as URL encoding is turned off in TWiki pages.
twiki - to whatever you like by changing it in the TWiki.cfg configuration file. However, to keep the current installation and future upgrades simple, you should leave the five main subdirectories intact:
| Directory: | Files: | Used for: |
|---|---|---|
twiki | list | Start-up info |
twiki/bin | list | Perl scripts |
twiki/lib | list | Configuration file, main library, Perl system modules, Plugins directory |
twiki/pub | list | Public files (eg: images) and FileAttachments and their RCS histories |
twiki/data | list | Individual topics (page content) and their RCS histories |
twiki/templates | list | HTML templates, used by TWiki scripts |
twiki | File | Used for |
|---|---|
index.html | Links to launch TWiki after install and for files in this directory |
license.txt | GNU General Public License and TWiki-specific info |
readme.txt | General TWiki start-up info with relevant URLs |
TWikiDocumentation.html | All documentation packaged as a single page |
TWikiHistory.html | TWiki development timeline: versions, features, developers |
TwikiUpgrade | TWiki upgrade script (Beta state) |
twiki/bin | File: | Used for: |
|---|---|
.htaccess.txt | Authentication. Rename to .htaccess and customize if used |
attach | Shows the attach file page (FileAttachment) |
changes | a simple WebChanges query |
edit | Edit a topic |
geturl | Fetch URL data |
installpasswd | Install new password by admin |
mailnotify | Script called by cron job to notify users of changes |
manage | Manage script to create new webs |
oops | Shows an OK or oops dialog |
passwd | Reset and change password |
preview | Preview topic after edit |
rdiff | See differences of topics |
rdiffauth | Copy of rdiff script (ideally a link). The .htaccess file sets this as requiring authorisation |
register | Register new users |
rename | Rename/move topics and move attachments |
save | Saves a topic, called by preview |
search | Displays search results |
setlib.cfg | Location of the TWiki libraries. Customize if needed |
statistics | Create statistics topic |
testenv | Test CGI environment variables |
upload | Does file upload (FileAttachment) |
view | View a topic (the script) |
viewauth | Copy of view script (ideally a link). The .htaccess file sets this as requiring authorisation |
viewfile | View a file attachment |
twiki/lib lib/TWiki/Plugins directories contain configuration, library and function files, and TWikiPlugins. Full file list:
| File: | Used for: |
|---|---|
TWiki.cfg | Main configuration, used by TWiki.pm |
TWiki.pm | Main TWiki library |
Algorithm/Diff.pm | Diff library |
Text/Diff.pm | Diff library, used by TwikiUpgrade script |
TWiki/Access.pm | Access control |
TWiki/Attach.pm | Attachment handling |
TWiki/Form.pm | Form handling |
TWiki/Func.pm | Public functions that Plugins may use |
TWiki/Meta.pm | Meta data in topics |
TWiki/Net.pm | SMTP mail handling |
TWiki/Plugins.pm | Plugin handling |
TWiki/Plugins/CommentPlugin.pm | Plugin handling a comment box |
TWiki/Plugins/CommentPlugin/Attrs.pm | Supporting module for Comment Plugin |
TWiki/Plugins/CommentPlugin/Comment.pm | Supporting module for Comment Plugin |
TWiki/Plugins/CommentPlugin/Templates.pm | Supporting module for Comment Plugin |
TWiki/Plugins/DefaultPlugin.pm | Handles some legacy rules |
TWiki/Plugins/EditTablePlugin.pm | Plugin to edit tables |
TWiki/Plugins/EmptyPlugin.pm | Empty plugin, use to create your own |
TWiki/Plugins/InterwikiPlugin.pm | Use aliases as links for predefined URLs |
TWiki/Plugins/RenderListPlugin.pm | Plugin to render lists as nice trees |
TWiki/Plugins/SlideShowPlugin.pm | Plugin turning headings into slides |
TWiki/Plugins/SmiliesPlugin.pm | Plugin rendering smilies like :-) |
TWiki/Plugins/SpreadSheetPlugin.pm | Plugin resolving spreadsheet formulae |
TWiki/Plugins/TablePlugin.pm | Plugin to render tables nicely |
TWiki/Prefs.pm | Preferences handling |
TWiki/Render.pm | TWiki markup to HTML rendering |
TWiki/Search.pm | Search engine, used by TWiki.pm |
TWiki/Store.pm | Back-end storage, *.txt text file and *.txt,v RCS repository file handling |
TWiki/Store/RcsFile.pm | Generic file handling code, a class |
TWiki/Store/RcsWrap.pm | Wrappers around RCS executables, a class that inherits from RcsFile |
TWiki/Store/RcsLite.pm | A Perl RCS implemention, a class that inherits from RcsFile |
TWiki/UI.pm | User interface handling |
TWiki/UI/Changes.pm | Functionality of changes script |
TWiki/UI/Edit.pm | Functionality of edit script |
TWiki/UI/Manage.pm | Functionality of manage script |
TWiki/UI/Oops.pm | Functionality of oops script |
TWiki/UI/Preview.pm | Functionality of preview script |
TWiki/UI/RDiff.pm | Functionality of rdiff script |
TWiki/UI/Save.pm | Functionality of save script |
TWiki/UI/Search.pm | Functionality of search script |
TWiki/UI/Statistics.pm | Functionality of statistics script |
TWiki/UI/Upload.pm | Functionality of upload script |
TWiki/UI/View.pm | Functionality of view script |
TWiki/UI/Viewfile.pm | Functionality of viewfile script |
TWiki/Upgrade/TWikiCfg.pm | Supporting module of TwikiUpgrade script |
TWiki/Upgrade/UpdateTopics.pm | Supporting module of TwikiUpgrade script |
TWiki/Upgrade/UpdateTopicsManualSymlinks.pm | Supporting module of TwikiUpgrade script |
TWiki/User.pm | Abstraction package to allow plugable user authentication systems |
TWiki/User/HtPasswdUser.pm | Apache Htpasswd file implementation (the default) |
TWiki/User/NoPasswdUser.pm | simple, no users authentication (totally wiki) |
twiki/pub pub directory stores topic-related files, including images used by TWiki and FileAttachments. Attachments are stored in subdirectories created with the related topic name. You can also upload files directly for and link manually (but not through Attach) Partial file list:
| File: | Used for: |
|---|---|
favicon.ico | ICO file |
wikiHome.gif | GIF file |
icn/_filetypes.txt | Lookup table to translate file extension to file type |
icn/bat.gif | GIF file for file type |
icn/bmp.gif | GIF file for file type |
| ... | ... |
TWiki/FileAttachment/Sample.txt | TEXT file: sample |
TWiki/FileAttachment/Smile.gif | GIF image: sample |
TWiki/FileAttachment/Smile.gif,v | RCS repository for GIF file |
TWiki/PreviewBackground/blankltgraybg.gif | GIF image |
TWiki/PreviewBackground/blankwhitebg.gif | GIF image |
TWiki/PreviewBackground/previewbg.gif | GIF image: Preview view background |
TWiki/PreviewBackground/preview2bg.gif | GIF image: Alternate preview view background |
TWiki/TWikiLogos/twikiRobot121x54.gif | GIF image: TWiki logo |
| ... | ... |
TWiki/TWikiTemplates/testscreen.gif | GIF image: Screen shot |
TWiki/WabiSabi/wabisabi.gif | GIF image: illustration |
twiki/data Main, TWiki, and Sandbox - with documentation and demo content, a Trash web for browser-based, recoverable topic deletion, and a _default directory containing a core topic set required to start a new web. Partial file list:
| File: | Used for: |
|---|---|
.htpasswd | Basic Authentication (htaccess) users file with username and encrypted password pairs |
debug.txt | Program-generated messages useful for debugging |
mime.types | Recognized file formats |
warning.txt | Diagnostic messages for identifying problems |
_default/.changes | Per web record of topic changes |
_default/.mailnotify | Per web timestamp of most recent email notification |
_default/WebChanges.txt | Display most recent topic changes in web |
_default/WebChanges.txt,v | Revisions history (RCS) |
_default/WebHome.txt | Default web home page |
_default/WebHome.txt,v | Revisions history (RCS) |
_default/WebIndex.txt | Lists all topics in a web |
_default/WebIndex.txt,v | Revisions history (RCS) |
_default/WebLeftBar.txt | Left navigation bar for PatternSkin |
_default/WebLeftBar.txt,v | Revisions history (RCS) |
_default/WebNotify.txt | Subscribe/unsubscribe to web changes email alert |
_default/WebNotify.txt,v | Revisions history (RCS) |
_default/WebPreferences.txt | Per web Preference Settings |
_default/WebPreferences.txt,v | Revisions history (RCS) |
_default/WebSearch.txt | Per web search options |
_default/WebSearch.txt,v | Revisions history (RCS) |
_default/WebStatistics.txt | Generates web usage statistics |
_default/WebStatistics.txt,v | Revisions history (RCS) |
_default/WebTopicList.txt | Lists all topics in a web in compact format |
_default/WebTopicList.txt,v | Revisions history (RCS) |
| ... | ... |
twiki/templates | File: | Used for: |
|---|---|
attach.tmpl | Attachment (FileAttachments) control screen |
attachagain.tmpl | Attachment control screen for updating an existing attachment |
attachnew.tmpl | Attachment control screen for adding a new attachment |
attachtables.tmpl | Macros for definition of attachment tables |
changeform.tmpl | Control screen to change the form in edit mode |
changes.tmpl | Displays list of recently changed topics |
edit.iejs.tmpl | Edit window with IE-specific JavaScript |
edit.tmpl | Main edit window |
mailnotify.tmpl | Email notification |
moveattachment.tmpl | Move attachment control screen |
oopsaccesschange.tmpl | Error message |
oopsaccessgroup.tmpl | Error message |
oopsaccessmanage.tmpl | Error message |
oopsaccessrename.tmpl | Error message |
oopsaccessview.tmpl | Error message |
oopsattachnotopic.tmpl | Error message |
oopsauth.tmpl | Error message |
oopsbadcharset.tmpl | Error message |
oopsbadpwformat.tmpl | Error message |
oopschangepasswd.tmpl | Error message |
oopscreatenewtopic.tmpl | Error message |
oopsempty.tmpl | Error message |
oopslocked.tmpl | Error message |
oopslockedrename.tmpl | Error message |
oopsmanage.tmpl | Error message |
oopsmissing.tmpl | Error message |
oopsmngcreateweb.tmpl | Error message |
oopsmore.tmpl | More topic actions message |
oopsmoveerr.tmpl | Error message |
oopsnoformdef.tmpl | Error message |
oopsnotwikiuser.tmpl | Error message |
oopsnoweb.tmpl | Error message |
oopspreview.tmpl | Error message |
oopsregemail.tmpl | Error message |
oopsregexist.tmpl | Error message |
oopsregpasswd.tmpl | Error message |
oopsregrequ.tmpl | Error message |
oopsregthanks.tmpl | Error message |
oopsregwiki.tmpl | Error message |
oopsremoveuserdone.tmpl | Error message |
oopsrenameerr.tmpl | Error message |
oopsrenamenotwikiword.tmpl | Error message |
oopsresetpasswd.tmpl | Error message |
oopsrev.tmpl | Error message |
oopssave.tmpl | Error message |
oopssaveerr.tmpl | Error message |
oopssendmailerr.tmpl | Error message |
oopstopicexists.tmpl | Error message |
oopsupload.tmpl | Error message |
oopsuploadlimit.tmpl | Error message |
oopswrongpassword.tmpl | Error message |
preview.tmpl | Preview Changes screen |
rdiff.tmpl | Displays text changes before & after Diffs |
registernotify.tmpl | Registration notification |
rename.tmpl | Rename/move control screen (choose web & new topic tile |
renamebase.tmpl | Used by other rename templates |
renameconfirm.tmpl | Confirms a pre-specified rename, ex: undoing a rename |
renamedelete.tmpl | Confirms a delete |
renamerefs.tmpl | Display if rename done, but some references not changed (topics were locked) |
search.tmpl | Search screen |
searchbookview.tmpl | Search results with full topic content |
searchformat.tmpl | Search screen for formatted search |
searchmeta.tmpl | Search screen |
searchrenameview.tmpl | Used by rename to list references to topic being renamed |
twiki.tmpl | Master template: definitions are used by other templates |
view.plain.tmpl | Skin for bare bone topic view without header/footer but with HTML head and body tags |
view.print.tmpl | Skin for printable topic view with a simple header/footer |
view.rss.tmpl | Skin for topic view in RDF XML format |
view.text.tmpl | Skin for topic text only, without HTML head and body tags, and no form and attachments |
view.tmpl | Main topic view - the standard regular Web page |
twiki twiki - will probably be your domain or login name, eg: yourdomain yourdomain and can't be changed; same for nobody nobody files further down. Also, in the bin directory, scripts might need a .cgi (sometimes .pl) extension.
twiki/bin:
drwxrwxr-x 2 twiki twiki 4096 May 9 00:08 . drwxrwxr-x 5 twiki twiki 4096 Nov 18 2002 .. -rw-rw-r-- 1 twiki twiki 3145 Jul 25 00:31 .htaccess.txt -rwxrwxr-x 1 twiki twiki 1459 May 28 23:51 attach -rwxrwxr-x 1 twiki twiki 1721 May 28 23:51 changes -rwxrwxr-x 1 twiki twiki 1994 May 28 23:51 edit -rwxrwxr-x 1 twiki twiki 1878 May 28 23:51 geturl -rwxrwxr-x 1 twiki twiki 6689 May 28 23:51 installpasswd -rwxrwxr-x 1 twiki twiki 7313 May 28 23:51 mailnotify -rwxrwxr-x 1 twiki twiki 3557 Jul 25 15:00 manage -rwxrwxr-x 1 twiki twiki 1448 May 28 23:51 oops -rwxrwxr-x 1 twiki twiki 4062 May 28 23:51 passwd -rwxrwxr-x 1 twiki twiki 1506 May 28 23:51 preview -rwxrwxr-x 2 twiki twiki 1490 May 28 23:51 rdiff -rwxrwxr-x 2 twiki twiki 1490 May 28 23:51 rdiffauth -rwxrwxr-x 1 twiki twiki 7635 May 28 23:51 register -rwxrwxr-x 1 twiki twiki 1774 May 28 23:51 rename -rwxrwxr-x 1 twiki twiki 1654 Jul 25 00:31 save -rwxrwxr-x 1 twiki twiki 1728 May 28 23:51 search -rw-rw-r-- 1 twiki twiki 2131 Aug 7 21:13 setlib.cfg -rwxrwxr-x 1 twiki twiki 2596 May 28 23:51 statistics -rwxrwxr-x 1 twiki twiki 39926 Jul 25 15:00 testenv -rwxrwxr-x 1 twiki twiki 1478 May 28 23:51 upload -rwxrwxr-x 2 twiki twiki 1689 May 28 23:51 view -rwxrwxr-x 2 twiki twiki 1689 May 28 23:51 viewauth -rwxrwxr-x 1 twiki twiki 1438 May 28 23:51 viewfileDirectory
twiki/templates/:
drwxrwxr-x 2 twiki twiki 4096 Aug 7 19:09 . drwxrwxr-x 4 twiki twiki 4096 Aug 7 21:13 .. -rw-rw-r-- 1 twiki users 2077 Aug 13 22:21 attachagain.pattern.tmpl -rw-rw-r-- 1 twiki users 1650 Aug 13 22:21 attachagain.tmpl -rw-rw-r-- 1 twiki twiki 2556 Jul 27 10:47 attach.dragon.tmpl -rw-rw-r-- 1 twiki users 567 Jul 28 19:52 attachnew.pattern.tmpl -rw-rw-r-- 1 twiki users 470 Jul 28 19:52 attachnew.tmpl -rw-rw-r-- 1 twiki users 2855 Aug 8 03:40 attach.pattern.tmpl -rw-rw-r-- 1 twiki users 1991 Aug 3 13:09 attachtables.pattern.tmpl -rw-rw-r-- 1 twiki users 1869 Jul 27 22:03 attachtables.tmpl -rw-rw-r-- 1 twiki users 2355 Jul 28 19:52 attach.tmpl -rw-rw-r-- 1 twiki twiki 1324 Jul 27 10:47 changeform.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1441 Aug 6 11:47 changeform.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1032 Jul 28 19:52 changeform.tmpl -rw-rw-r-- 1 twiki twiki 1870 Jul 27 10:47 changes.dragon.tmpl -rw-rw-r-- 1 twiki twiki 433 Jul 31 12:39 changes.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1196 May 28 23:51 changes.tmpl -rw-rw-r-- 1 twiki twiki 35 May 21 03:56 comments.tmpl -rw-rw-r-- 1 twiki twiki 526 Jul 27 10:47 dragoncssvars.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1645 Jul 31 00:57 dragonmenu.dragon.tmpl -rw-rw-r-- 1 twiki twiki 4207 Jul 27 10:47 edit.dragon.tmpl -rw-rw-r-- 1 twiki twiki 12608 Jul 28 19:52 edit.iejs.tmpl -rw-rw-r-- 1 twiki twiki 4904 Aug 7 17:48 edit.pattern.tmpl -rw-rw-r-- 1 twiki twiki 3975 Aug 8 03:40 edit.tmpl -rw-rw-r-- 1 twiki twiki 993 May 28 23:51 mailnotify.tmpl -rw-rw-r-- 1 twiki twiki 1640 Jul 27 10:47 moveattachment.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1968 Aug 7 17:48 moveattachment.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1342 Jul 28 19:52 moveattachment.tmpl -rw-rw-r-- 1 twiki twiki 571 May 28 23:51 oopsaccesschange.tmpl -rw-rw-r-- 1 twiki twiki 587 May 28 23:51 oopsaccessgroup.tmpl -rw-rw-r-- 1 twiki twiki 597 Aug 2 11:10 oopsaccessmanage.tmpl -rw-rw-r-- 1 twiki twiki 572 May 28 23:51 oopsaccessrename.tmpl -rw-rw-r-- 1 twiki twiki 574 May 28 23:51 oopsaccessview.tmpl -rw-rw-r-- 1 twiki twiki 571 Aug 2 11:10 oopsattachnotopic.tmpl -rw-rw-r-- 1 twiki twiki 998 May 28 23:51 oopsauth.tmpl -rw-rw-r-- 1 twiki twiki 646 May 28 23:51 oopsbadcharset.tmpl -rw-rw-r-- 1 twiki twiki 406 May 28 23:51 oopsbadpwformat.tmpl -rw-rw-r-- 1 twiki twiki 345 May 28 23:51 oopschangepasswd.tmpl -rw-rw-r-- 1 twiki twiki 382 May 28 23:51 oopscreatenewtopic.tmpl -rw-rw-r-- 1 twiki twiki 627 Jul 7 23:11 oopsempty.tmpl -rw-rw-r-- 1 twiki twiki 927 Aug 3 13:09 oopslocked.pattern.tmpl -rw-rw-r-- 1 twiki twiki 612 Aug 2 11:10 oopslockedrename.pattern.tmpl -rw-rw-r-- 1 twiki twiki 596 Aug 2 11:10 oopslockedrename.tmpl -rw-rw-r-- 1 twiki twiki 910 Aug 3 13:09 oopslocked.tmpl -rw-rw-r-- 1 twiki twiki 679 May 28 23:51 oopsmanage.tmpl -rw-rw-r-- 1 twiki twiki 329 May 28 23:51 oopsmissing.tmpl -rw-rw-r-- 1 twiki twiki 2353 May 28 23:51 oopsmngcreateweb.tmpl -rw-rw-r-- 1 twiki twiki 2987 Aug 3 13:09 oopsmore.tmpl -rw-rw-r-- 1 twiki twiki 418 May 28 23:51 oopsmoveerr.tmpl -rw-rw-r-- 1 twiki twiki 1133 May 28 23:51 oopsnoformdef.tmpl -rw-rw-r-- 1 twiki twiki 521 May 28 23:51 oopsnotwikiuser.tmpl -rw-rw-r-- 1 twiki twiki 1516 Jul 28 19:52 oopsnoweb.tmpl -rw-rw-r-- 1 twiki twiki 394 May 28 23:51 oopspreview.tmpl -rw-rw-r-- 1 twiki twiki 341 May 28 23:51 oopsregemail.tmpl -rw-rw-r-- 1 twiki twiki 411 May 28 23:51 oopsregerr.tmpl -rw-rw-r-- 1 twiki twiki 476 May 28 23:51 oopsregexist.tmpl -rw-rw-r-- 1 twiki twiki 346 May 28 23:51 oopsregpasswd.tmpl -rw-rw-r-- 1 twiki twiki 357 May 28 23:51 oopsregrequ.tmpl -rw-rw-r-- 1 twiki twiki 541 May 28 23:51 oopsregthanks.tmpl -rw-rw-r-- 1 twiki twiki 680 May 28 23:51 oopsregwiki.tmpl -rw-rw-r-- 1 twiki twiki 587 May 28 23:51 oopsremoveuserdone.tmpl -rw-rw-r-- 1 twiki twiki 503 May 28 23:51 oopsrenameerr.tmpl -rw-rw-r-- 1 twiki twiki 434 May 28 23:51 oopsrenamenotwikiword.tmpl -rw-rw-r-- 1 twiki twiki 507 May 28 23:51 oopsresetpasswd.tmpl -rw-rw-r-- 1 twiki twiki 962 Jul 28 19:52 oopsrev.tmpl -rw-rw-r-- 1 twiki twiki 483 May 28 23:51 oopssaveerr.tmpl -rw-rw-r-- 1 twiki twiki 777 Jul 7 23:11 oopssave.tmpl -rw-rw-r-- 1 twiki twiki 466 May 28 23:51 oopssendmailerr.tmpl -rw-rw-r-- 1 twiki twiki 385 May 28 23:51 oopstopicexists.tmpl -rw-rw-r-- 1 twiki twiki 344 May 28 23:51 oopsuploadlimit.tmpl -rw-rw-r-- 1 twiki twiki 343 May 28 23:51 oopsupload.tmpl -rw-rw-r-- 1 twiki twiki 365 May 28 23:51 oopswrongpassword.tmpl -rw-rw-r-- 1 twiki twiki 3590 Jul 27 10:47 preview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 2855 Aug 6 11:47 preview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2253 Aug 8 03:40 preview.tmpl -rw-rw-r-- 1 twiki twiki 1739 Jul 27 10:47 rdiff.dragon.tmpl -rw-rw-r-- 1 twiki users 1529 Aug 13 22:21 rdiff.pattern.tmpl -rw-rw-r-- 1 twiki users 1299 May 28 23:51 rdiff.tmpl -rw-rw-r-- 1 twiki twiki 1159 Jul 31 12:39 registernotify.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1160 May 28 23:51 registernotify.tmpl -rw-rw-r-- 1 twiki twiki 2561 Jul 27 10:47 renamebase.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3363 Aug 8 03:40 renamebase.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2279 Jul 28 20:54 renamebase.tmpl -rw-rw-r-- 1 twiki twiki 718 Jul 31 12:39 renameconfirm.pattern.tmpl -rw-rw-r-- 1 twiki twiki 570 Jul 28 19:52 renameconfirm.tmpl -rw-rw-r-- 1 twiki twiki 1046 Jul 31 12:39 renamedelete.pattern.tmpl -rw-rw-r-- 1 twiki twiki 932 Jul 28 19:52 renamedelete.tmpl -rw-rw-r-- 1 twiki twiki 1147 Jul 31 12:39 rename.pattern.tmpl -rw-rw-r-- 1 twiki twiki 766 Jul 28 19:52 renamerefs.pattern.tmpl -rw-rw-r-- 1 twiki twiki 616 Jul 28 19:52 renamerefs.tmpl -rw-rw-r-- 1 twiki twiki 1041 Jul 28 19:52 rename.tmpl -rw-rw-r-- 1 twiki twiki 1397 Jul 27 10:47 searchbookview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 723 Jul 31 12:39 searchbookview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1230 May 28 23:51 searchbookview.tmpl -rw-rw-r-- 1 twiki twiki 1705 Jul 27 10:47 search.dragon.tmpl -rw-rw-r-- 1 twiki twiki 722 Jul 27 10:47 searchformat.dragon.tmpl -rw-rw-r-- 1 twiki twiki 157 Jul 31 12:39 searchformat.pattern.tmpl -rw-rw-r-- 1 twiki twiki 529 May 28 23:51 searchformat.tmpl -rw-rw-r-- 1 twiki twiki 149 Jul 7 23:03 searchmeta.pattern.tmpl -rw-rw-r-- 1 twiki twiki 149 May 28 23:51 searchmeta.tmpl -rw-rw-r-- 1 twiki twiki 1638 Aug 7 17:48 search.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1892 Jul 27 10:47 searchrenameview.dragon.tmpl -rw-rw-r-- 1 twiki twiki 1208 Aug 3 13:09 searchrenameview.pattern.tmpl -rw-rw-r-- 1 twiki twiki 1615 May 28 23:51 searchrenameview.tmpl -rw-rw-r-- 1 twiki twiki 1364 May 28 23:51 search.tmpl -rw-rw-r-- 1 twiki twiki 3836 Jul 27 10:47 twiki.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3175 Aug 7 17:48 twiki.pattern.tmpl -rw-rw-r-- 1 twiki twiki 2798 Jul 27 22:57 twiki.tmpl -rw-rw-r-- 1 twiki twiki 1324 Jul 27 10:47 view.dragon.tmpl -rw-rw-r-- 1 twiki twiki 3577 Aug 8 03:40 view.pattern.tmpl -rw-rw-r-- 1 twiki twiki 425 May 28 23:51 view.plain.tmpl -rw-rw-r-- 1 twiki twiki 1056 Jul 31 12:39 view.print.pattern.tmpl -rw-rw-r-- 1 twiki twiki 845 May 28 23:51 view.print.tmpl -rw-rw-r-- 1 twiki twiki 300 May 28 23:51 view.rss.tmpl -rw-rw-r-- 1 twiki twiki 8 May 28 23:51 view.text.tmpl -rw-rw-r-- 1 twiki twiki 1281 Jul 31 12:39 view.tmplDirectory
twiki/data/:
drwxrwxr-x 7 nobody twiki 4096 Aug 7 21:13 . drwxrwxr-x 4 twiki twiki 4096 Aug 7 21:13 .. -rw-rw-rw- 1 twiki twiki 0 Feb 1 2003 debug.txt drwxrwxr-x 2 nobody twiki 4096 Jul 16 00:36 _default -rw-rw-r-- 1 twiki twiki 25 Dec 16 2003 .htpasswd.txt -rw-rw-r-- 1 nobody nobody 11811 Aug 13 23:10 log200408.txt drwxrwxr-x 2 nobody twiki 4096 Aug 4 21:03 Main -rw-rw-r-- 1 twiki twiki 3419 Aug 13 2001 mime.types drwxrwxr-x 2 nobody twiki 4096 Aug 7 21:03 Sandbox drwxrwxr-x 2 nobody twiki 4096 Jul 20 18:15 Trash drwxrwxr-x 2 nobody twiki 12288 Aug 13 23:10 TWiki -rw-rw-rw- 1 twiki twiki 0 Aug 7 18:03 warning.txtPartial file list for
twiki/data/Main:
.txt,v.
drwxrwxr-x 2 nobody twiki 4096 Aug 4 21:03 . drwxrwxr-x 7 nobody twiki 4096 Aug 7 21:13 .. -rw-rw-rw- 1 twiki twiki 3743 Aug 4 21:03 .changes -rw-rw-rw- 1 twiki twiki 9 Oct 25 2001 .mailnotify -rw-r--r-- 1 nobody nobody 518 Dec 16 2003 TWikiAdminGroup.txt -r--r--r-- 1 nobody nobody 2453 Dec 16 2003 TWikiAdminGroup.txt,v -rw-r--r-- 1 nobody nobody 1668 Aug 4 21:03 TWikiGroups.txt -r--r--r-- 1 nobody nobody 3421 Aug 4 21:03 TWikiGroups.txt,v -rw-r--r-- 1 nobody nobody 686 Dec 13 2000 TWikiGuest.txt -rw-r--r-- 1 nobody nobody 1995 Dec 13 2000 TWikiGuest.txt,v -rw-r--r-- 1 nobody nobody 319 Dec 20 2003 TWikiPreferences.txt -r--r--r-- 1 nobody nobody 508 Dec 20 2003 TWikiPreferences.txt,v -rw-r--r-- 1 nobody nobody 1812 Feb 20 13:54 TWikiUsers.txt -r--r--r-- 1 nobody nobody 9222 Feb 20 13:54 TWikiUsers.txt,v -rw-r--r-- 1 nobody nobody 119 Jan 11 2003 TWikiVariables.txt -r--r--r-- 1 nobody nobody 742 Jan 11 2003 TWikiVariables.txt,v -rw-r--r-- 1 nobody nobody 124 Aug 16 2001 WebChanges.txt -r--r--r-- 1 nobody nobody 526 Aug 16 2001 WebChanges.txt,v -rw-r--r-- 1 nobody nobody 1842 Feb 1 2003 WebHome.txt -r--r--r-- 1 nobody nobody 11862 Feb 1 2003 WebHome.txt,v -rw-r--r-- 1 nobody nobody 176 Nov 24 2001 WebIndex.txt -r--r--r-- 1 nobody nobody 483 Nov 24 2001 WebIndex.txt,v -rw-r--r-- 1 nobody nobody 922 Feb 3 2003 WebNotify.txt -r--r--r-- 1 nobody nobody 4303 Feb 3 2003 WebNotify.txt,v -rw-r--r-- 1 nobody nobody 3738 Dec 25 2003 WebPreferences.txt -r--r--r-- 1 nobody nobody 10697 Dec 25 2003 WebPreferences.txt,v -rw-r--r-- 1 nobody nobody 416 Jan 30 2003 WebRss.txt -r--r--r-- 1 nobody nobody 605 Jan 30 2003 WebRss.txt,v -rw-r--r-- 1 nobody nobody 164 Jan 18 2004 WebSearchAdvanced.txt -r--r--r-- 1 nobody nobody 353 Jan 18 2004 WebSearchAdvanced.txt,v -rw-r--r-- 1 nobody nobody 158 Aug 7 2001 WebSearch.txt -r--r--r-- 1 nobody nobody 18332 Aug 7 2001 WebSearch.txt,v -rw-r--r-- 1 nobody nobody 825 Jul 16 00:32 WebStatistics.txt -r--r--r-- 1 nobody nobody 4226 Jul 16 00:32 WebStatistics.txt,v -rw-r--r-- 1 nobody nobody 182 Nov 24 2001 WebTopicList.txt -r--r--r-- 1 nobody nobody 371 Nov 24 2001 WebTopicList.txt,vDirectory
twiki/pub/:
drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 . drwxrwxr-x 3 twiki twiki 4096 Nov 18 12:31 .. drwxrwxr-x 2 nobody nobody 4096 Apr 7 2002 Main drwxrwxr-x 2 nobody nobody 4096 Apr 20 2002 Sandbox drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 TWiki drwxrwxr-x 2 nobody nobody 4096 Dec 3 2001 Trash -rw-rw-r-- 1 twiki twiki 1078 Jan 14 2000 favicon.ico drwxrwxr-x 2 twiki twiki 4096 Nov 18 12:31 icn -rw-rw-r-- 1 twiki twiki 2877 Jun 7 1999 wikiHome.gifPartial file list for
twiki/pub/icn/:
drwxrwxr-x 2 twiki twiki 4096 Nov 18 12:31 . drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 .. -rw-rw-r-- 1 twiki twiki 801 Mar 26 1999 _filetypes.txt -rw-rw-r-- 1 twiki twiki 143 Mar 9 1999 bat.gif -rw-rw-r-- 1 twiki twiki 926 Mar 9 1999 bmp.gif -rw-rw-r-- 1 twiki twiki 141 Mar 25 1999 c.gif -rw-rw-r-- 1 twiki twiki 144 Mar 9 1999 dll.gif -rw-rw-r-- 1 twiki twiki 152 Mar 9 1999 doc.gifDirectory
twiki/pub/TWiki:
drwxrwx--x 8 nobody nobody 4096 Nov 18 12:31 . drwxrwxr-x 8 nobody nobody 4096 Nov 18 12:31 .. drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 FileAttachment drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 PreviewBackground drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiDocGraphics drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiLogos drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 TWikiTemplates drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 WabiSabiDirectory
twiki/pub/TWiki/FileAttachment:
drwxrwxr-x 2 nobody nobody 4096 Nov 18 12:31 . drwxrwx--x 8 nobody nobody 4096 Nov 18 12:31 .. -rw-rw-r-- 1 nobody nobody 30 Jul 22 1999 Sample.txt -rw-rw-r-- 1 nobody nobody 94 Jun 7 1999 Smile.gif -r--r--r-- 1 nobody nobody 81 Aug 15 10:14 Smile.gif,v-- TWiki:Main.PeterThoeny - 29 Aug 2004
DENYTOPICVIEW or ALLOWTOPICVIEW are empty
WebPreferences of a web, DENYWEBVIEW and ALLOWWEBVIEW are empty.
NOCACHE variable is NOT set, neither in the Topic nor in WebPreferences
CACHE variable is set with a value.
?skin=plain
| Time | Experiment |
|---|---|
| 40 ms | cached Topic with no CACHE or NOCACHE variables in |
| 76 ms | cached Topic with CACHE or NOCACHE variables in |
| 3358 ms | rerended Topic with cache chooser |
| 3276 ms | directly rendered Topic without cache chooser |
| 82 ms | overhead through cache chooser programm |
Set NOCACHE somewhere in the document.
<!-- Set NOCACHE -->
Set NOCACHE in the WebPreferences of that web.
Set CACHE = cache
WebPrefrerences in each Web
cache, it will rerender the Topic after timeout is reached. The format includes one string after the equal sign that has to be separated by one space on each sides! The format includes m=minutes, h=hours, d=days, w=weeks and M=months. Several time settings can be set together and are separated by " - " to build up one string! The letters follow directly after the number of time. Examples:
daily will cause the Topic rerendered for the actual day to display the calendar properly, so set:
Set ALLOWTOPICVIEW = Main. ... or Set DENYTOPICVIEW = Main. ... is set or
WebPreferences of a web Set ALLOWWEBVIEW = Main. ... or Set DENYWEBVIEW = Main. ... is set, followed by a user or group, caching is disabled. If activated later, the copy in the cache will be removed.
Set ALLOWTOPICVIEW =Main.TWikiGuest
Set ALLOWTOPICVIEW = TWikiGuest
CacheChooserAddOn.zip ZIP file from TWiki:Plugins.CacheChooserAddOn
CacheChooserAddOn.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/CacheChooserAddOn.txt | Add-on topic |
data/TWiki/CacheChooserAddOn.txt,v | Add-on topic repository |
bin/cache | Add-on script |
bin/render | original view script |
bin/view | link to cache |
bin/refresh | link to cache |
cache/.htcacherr.log | log file of wrong CACHE variable entries |
/your/twiki/template/view.tmpl to have a refresh function,
e.g. next to the the "More" link:%TMPL:P{"sep"}% <a href="%SCRIPTURLPATH%/refresh%SCRIPTSUFFIX%/%WEB%/%TOPIC%">Refresh</a>
302 Moved messages cause wrong Localisation redirect, when view script is called with different name. Workaround is to use the ?refresh=cache option instead of the link refresh for the refresh button, e.g.: %TMPL:P{"sep"}% <a href="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/%WEB%/%TOPIC%?refresh=cache">Refresh</a>
deny from all
| Add-on Author: | TWiki:Main/JensRoeder |
| Add-on Version: | 30 Mar 2005 (v1.000) |
| Change History: | |
| 30 Mar 2005: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| License: | GPL |
| Add-on Home: | http://TWiki.org/cgi-bin/view/Plugins/CacheChooserAddOn |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/CacheChooserAddOnDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/CacheChooserAddOnAppraisal |
%<plugin>_<setting>%, i.e. %INTERWIKIPLUGIN_SHORTDESCRIPTION%
* One line description, is shown in the TextFormattingRules topic:
* Set SHORTDESCRIPTION = Plugin for Captcha verification / visual confirmation of new user registration.
* Debug plugin: (See output in data/debug.txt)
* Set DEBUG = 1
* Custom settings (defaults shown):
* Characters to use in generated strings:
* Set CHARACTERS = ABCDEFGHKLMNPRSTVWXYZabcdeghpqsuvwxy@
* Truetype font to use (place the font in $prefix/pub/TWiki/CaptchaPlugin, good source of apparently free fonts is http://www.webpagepublicity.com/free-fonts.html):
* Set FONT = TahomaBold?.ttf
* Number of random lines to add (use none for 0):
* Set LINES = 10
* Number of random circles to add (use none for 0):
* Set CIRCLES = 10
* Noise, percentage of pixels to flip randomly after generating graphics (use none for 0%):
* Set NOISE = 12
CaptchaPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/CaptchaPlugin.txt | Plugin topic |
data/TWiki/CaptchaPlugin.txt,v | Plugin topic repository |
register.patch | Patch for the register module |
templates/oopscaptcha.tmpl | Error template |
lib/TWiki/Plugins/CaptchaPlugin.pm | Plugin Perl module |
pub/TWiki/CaptchaPlugin/TahomaBold.ttf | Default font |
pub/TWiki/CaptchaPlugin/_db | Hash database directory |
pub/TWiki/CaptchaPlugin/_img | Image directory |
register.patch to lib/TWiki/UI/Register.pm (alternatively, patch Register.pm manually, see section below), be sure to make a backup so you can revert the patch if you want to disable the plugin:
* cd /path/to/twiki
* cp lib/TWiki/UI/Register.pm lib/TWiki/UI/Register.pm.dist
* patch < ../register.patch
* Restrict access to the database files, for example, by including the following in your httpd.conf:
<Directory "/path/to/twiki/pub/TWiki/CaptchaPlugin/_db">
deny from all
</Directory>
* Make sure the plugin has access to the preferred truetype font, by putting the .ttf file in pub/TWiki/CaptchaPlugin/
* Test if the installation was successful:
* Create a topic containing <IMG SRC="%CAPTCHAURL%"> and %CAPTCHAHASH%
* When loading this topic you should see an obfuscated character string loaded as a png and a hexadecimal hash.
* Check whether the hash database is properly protected by going to the url http://my.twiki.server/my/twiki/path/pub/TWiki/CaptchaPlugin/db/hashes.pag, you should see a permission denied message.
* Now edit your TWikiRegistration topic
* Display the image %CAPTCHAURL% somewhere in your form, along with a text instructing new users to copy the obfuscated text into the appropriate text input.
* Add the appropriate text input as Twk1CaptchaString
* Add a hidden input as Twk1CaptchaHash having as value %CAPTCHAHASH%
* For example, add this to your TWikiRegistration:
<tr>
<td valign="top" align="right"><IMG SRC="%CAPTCHAURL%">: <br /> (..) </td>
<td><input type="hidden" name="Twk1CaptchaHash" value="%CAPTCHAHASH%">
<input type="text" name="Twk1CaptchaString" size="5"></td> =<font color="red">**</font>=
</tr>
* That's it.
lib/TWiki/UI/Register.pm:
} # generate user entryInsert the code below directly BEFORE the line containing the curly bracket '{':
# check captcha
my %database;
my $vcHash=$data->{CaptchaHash};
my $vcTxt=$data->{CaptchaString};
open(LOCKFILE,">".&TWiki::Func::getPubDir()."/TWiki/CaptchaPlugin/_db/hashes.lock");
flock(LOCKFILE,2);
dbmopen(%database, &TWiki::Func::getPubDir()."/TWiki/CaptchaPlugin/_db/hashes" ,0644);
if(!defined($database{$vcHash})) {
throw TWiki::OopsException( 'captcha',
web => $data->{webName},
topic => $topic,
def => 'expired_vchash',
params => [ "expired" ] );
}
my ($time,$txt)=split(',',$database{$vcHash});
if(not(lc($txt) eq lc($vcTxt))) {
throw TWiki::OopsException( 'captcha',
web => $data->{webName},
topic => $topic,
def => 'invalid_vcstr',
params => [ "wrong" ] );
}
dbmclose(%database);
close(LOCKFILE);
| Plugin Author: | TWiki:Main.KoenMartens |
| Plugin Version: | 03 Aug 2006 (V1.2) |
| Change History: | |
| 07 Oct 2005: | Initial version |
| 10 Oct 2005: | Strip hash and text from arguments to register binary, or they will end up in the newly created user topic. |
| 03 Jan 2006: | Fixed some problems with expiry, also optimised according to TWiki:TWiki.TWikiPlugins#FastPluginHints. |
| 03 Aug 2006: | Renamed to CaptchaPlugin, adapted to Dakar (TWiki 4.0.x). |
| TWiki Dependency: | $TWiki::Plugins::VERSION 1.1 |
| CPAN Dependencies: | GD, Digest::MD5 |
| Other Dependencies: | none |
| Perl Version: | 5.005 |
| License: | GPL (GNU General Public License) |
| TWiki:Plugins/Benchmark: | GoodStyle 98%, FormattedSearch 98%, TWikiRegistration (patched) 85% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/CaptchaPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/CaptchaPluginDev |
| Appraisal: | http://TWiki.org/cgi-bin/view/Plugins/CaptchaPluginAppraisal |
.htpassword file managed by TWiki. It does not apply if you are using external authentication, such as an IT managed password system. (remove this note if you are using Basic Authentication; else replace this topic with a note describing how to change the password in your organization)| Description: | The classic TWiki skin, bare bone and functional, for any browser, with a minimum of graphics |
| Screenshot: | |
| Base Name: | classic |
| Skin Author: | TWiki:Main/PeterThoeny |
| Skin Version: | 25 Jul 2004 (v1.000) |
| Change History: | |
| 25 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/ClassicSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/ClassicSkinDev |
%COMMENT{ attributes }% anywhere in a TWiki topic. %COMMENT% is also legal.
The following attributes are recognised
| Name | Description |
|---|---|
type | (Required) This is the name of the template to use for this comment. Comment templates are defined in a TWiki template - see Customisation, below. If this attribute is not defined, the type is whatever is defined by COMMENTPLUGIN_DEFAULT_TYPE, either in this topic or in your WebPreferences. By default this is 'below'. |
target | Name of the topic to add the comment to. Defaults to the current topic. |
location | Regular expression specifying the comment location in the target topic. Read carefully below! |
mode | For compatability with older versions only, synonymous with type |
nonotify | Set to "on" to disable change notification for target topics |
%COMMENT supports several ways to specify where a comment should be inserted in the target topic. This is referred to as the location of the comment.
%COMMENT tag %COMMENT tag itself. For example:
%COMMENT{type="below"}%
will add comments in the current topic, directly below the %COMMENT tag.
target attribute may specify a web, and may also specify an anchor within the target topic; for example,
%COMMENT{type="above" target="%MAINWEB%.PersonalRemarks#InsertHere"}%
This uses a standard TWiki in-topic anchor as the insertion location. See TextFormattingRules for more about TWiki anchors.
location parameter. The target topic is searched for the regular expression, and the comment inserted relative to the string that the search matched. For example,
%COMMENT{type="above" location="Flights of Fancy"}%
will place comments above the first occurence of the string Flights of Fancy in the current topic.
Warning of course, if a user's comment contains the string "Flights of Fancy" they may and up changing the location for the next comment! Also, if you use a tag in the location, then you've just inserted another tag in the page that contains the %COMMENT! So be very careful how you specify the RE for location. Note that the RE is matched using perl "multiple line" mode, so ^ and $ match the start of a line and the end of a line respectively.
If you specify an anchor and a location, the anchor will be ignored.
| Template type | Description |
|---|---|
top | Comments, signed and dated, added at top of the topic (the anchor is ignored) |
bottom | Comments, signed and dated, added at end of the target topic (the anchor is ignored) |
above | Comments, signed and dated, added immediately before the target anchor, or the %COMMENT if no anchor is specified |
below | Comments, signed and dated, added immediately below the target anchor, or the %COMMENT if no anchor is specified |
tableprepend | Comments, signed and dated, formatted as an HTML table row, added below the anchor (which must be in an HTML <table>) |
tableappend | Comments, signed and dated, formatted as an HTML table row, added above the anchor (which must be in an HTML <table>) |
%TMPL:INCLUDE described in the documentation). The shipped plugin defines default templates in comments.tmpl and then includes the topic CommentsTmpl. If you want to define your own templates, add them to UserTemplates?. Note that you can use %TMPL:INCLUDE in this file to include other files of templates. Note also that if you want to override any of the default templates shipped with the plugin, you can simply do so by defining them in UserTemplates?, and they will replace the installed versions.
To define a comment type, you have to provide two simple template definitions in the template file; one for the prompt box, and one for the generated output. If we have a template type "mytype", these are named PROMPT:mytype and OUTPUT:mytype respectively. See comments.tmpl in the templates directory for examples.
PROMPT template PROMPT template defines the contents of an HTML form that is used to capture the comment. This form invokes the comment generator when submitted. Parameters to the comment generator are defined using standard HTML input fields, such as input, textarea and select. The user enters values for these parameters, and these are then available when the OUTPUT template is expanded, in the form of %URLPARAM%s.
Only the input fields of the form need be defined. The plugin automatically generates the >form< and >:/form< tags. Note that you must define a "submit" button if you want the form to work!
If an attribute is given to the %COMMENT tag that is not one of the standard attributes, then that attribute is taken as the name of a parameter to be expanded in the PROMPT template. Expressions in the template of the form %param|default% (e.g. %rows|3%, %button|Push me%) are expanded to the values given in the %COMMENT. For example, if the PROMPT template 'example' contains:
<textarea rows=%rows|3% cols="%cols|50%" value="%tval|Rubbish%">and the %COMMENT tag is:
%COMMENT{type="example" rows="5" cols="20"}%
then the template will be expanded as
<textarea rows=5 cols="20" value="Rubbish">As well as support for all the usual TWiki variables in templates, the following special variables are supported in the
PROMPT definition:
| Variable | Description |
|---|---|
%MESSAGE% | A helpful generated message, either a lock message or a reminder to refresh. |
%DISABLED% | Set to 'disabled' when you cannot comment (see Important Note regarding Locks, below). |
OUTPUT template OUTPUT template defines the format for the text that actually gets embedded into the topic. All the usual TWiki variables are available in the PROMPT definition, but note that they get expanded when the comment is inserted in the text, so time, date and username will refer to the time and date when the comment was made and the user who made it.
There are also four position tags that are used to indicate where the comment should be placed, relative to the location defined in the %COMMENT tag:
%POS:TOP% | If present, comments will be inserted at the top of the topic i.e. before any other text |
%POS:BOTTOM% | If present, comments will be inserted at the end of the topic i.e. after all existing text |
%POS:BEFORE% | If present, comments will be inserted immediately before the %COMMENT% tag |
%POS:AFTER% | If present, comments will be inserted immediately after the %COMMENT% tag |
DEFAULT_TYPE
%COMMENT. When the target page is known to be locked, the PROMPT form is automatically disabled.
CommentPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/CommentPlugin.txt | Plugin doc page (this page) |
data/TWiki/CommentsTmpl.txt | Example user templates |
templates/comments.tmpl | Master comment templates |
lib/TWiki/Plugins/CommentPlugin.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/Comment.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/Templates.pm | Plugin Perl module |
lib/TWiki/Plugins/CommentPlugin/test.zip | Tests |
lib/TWiki/Plugins/CommentPlugin/build.pl | Build file |
viewauth script to authenticate the user. As described in TWikiAccessControl, copy the view script to viewauth (or better, create a symbolic link) and add viewauth to the list of authenticated scripts in the .htaccess file.
%COMMENT edit box below here.
| Plugin Author: | v1.0 TWiki:Main/DavidWeller v2.0 TWiki:Main/PeterMasiar v3.0 TWiki:Main/CrawfordCurrie |
| Plugin Version: | 3.0 |
| Change History: | 3.003 11 Apr 2004: Minor line termination problem fixed, and "security" hyphen on standard comment removed and replaced with a bulleted list. |
| 3.002 6 April 2004: Applied patches (thanks Peter Thoeny) for multiple comment adding, BOTTOM and TOP inside meta-data, and moved example to Sandbox. | |
| 3.001 13 March 2004: Modified to use viewauth save technique (safer), add nonotify parameter, move templates fully into topics, with a hook for site-specifics, support %COMMENT%, internationalisation fixes | |
| 3.000 18 Feb 2004: TWiki:Main/CrawfordCurrie rewrote for standard templates and other user requests. Recognition to Patrice Fournier and Sam Abrams for terrific testing and patch support. | |
| 7 Feb 2004: TWiki:Main/CrawfordCurrie rewrote this page and CommentTemplates? in an effort to make the plugin more user friendly. Added {TIME} variable. Also updated CVS. | |
| 23 Sep 2003 TWiki:Main/PeterMasiar: 80% rewrite/refactor, adding templates | |
| 15 July 2003: TWiki:Main/PeterMasiar added "reminder" parameter and feature to pass comments to oopslockedcomments.tmpl template to copy-paste later | |
| 5 March 2002 Bug fixes, TWiki:Main/JonLambert created oopslockedcomments.tmpl template | |
| 24 Feb 2002 added a few more user requests, made "English" text configurable | |
| 4 Dec 2001: 1.01 release, changed name to CommentPlugin, added $button var, changed textarea WRAP setting to "soft" | |
| 30 Nov 2001: Initial version | |
| Dependencies: | |
| Perl Version: | 5.0 |
| Plugin Home: | TWiki:Plugins/CommentPlugin |
| Feedback: | TWiki:Plugins/CommentPluginDev |
%TMPL:DEF{promptbox}%
<table><tr valign="middle"><td><textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="comment" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea></td><td><input %DISABLED% type="submit" value="%button|Add comment%" /></td></tr></table>
%TMPL:END%
Standard comment, preserving formatting, signed and dated
%TMPL:DEF{outputstandard}%
%URLPARAM{"comment"}%
-- %WIKIUSERNAME% - %DATE%
%TMPL:END%
Short comment, signed and dated
%TMPL:DEF{outputoneliner}% * %URLPARAM{"comment"}% -- %WIKIUSERNAME% - %DATE% %TIME%%TMPL:END%
%TMPL:DEF{PROMPT:top}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:top}%%TMPL:P{outputoneliner}%%POS:TOP%
%TMPL:END%
%TMPL:DEF{PROMPT:bottom}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:bottom}%%POS:BOTTOM%%TMPL:P{outputoneliner}%%TMPL:END%
%TMPL:DEF{PROMPT:above}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:above}%%POS:BEFORE%%TMPL:P{outputstandard}%
%TMPL:END%
%TMPL:DEF{PROMPT:below}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:below}%%POS:AFTER%%TMPL:P{outputstandard}%
%TMPL:END%
%TMPL:DEF{PROMPT:tableprepend}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:tableprepend}%%POS:AFTER%| %URLPARAM{"comment" newline="<br />"}% </td><td> %WIKIUSERNAME% </td><td> %DATE% %TIME% |
%TMPL:END%
%TMPL:DEF{PROMPT:tableappend}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:tableappend}%%POS:BEFORE%| %URLPARAM{"comment" newline="<br />"}% | %WIKIUSERNAME% | %DATE% %TIME% |
%TMPL:END%
%TMPL:DEF{PROMPT:after}%%TMPL:P{promptbox}%%TMPL:END%
%TMPL:DEF{OUTPUT:after}%%TMPL:P{outputoneliner}% %POS:BEFORE%%TMPL:END%
%TMPL:DEF{PROMPT:action}%
<table>
<tr>
<td align="right">Action for (TWiki.WikiName):</td>
<td><input name="who" type="text" size="50" value="%URLPARAM{"who"}%" /></td>
</tr>
<tr>
<td align="right">Due date:</td>
<td>
<input name="due" id="idDue" type="text" size="30" value="%URLPARAM{"due"}%" />
</td>
</tr>
<tr>
<td colspan="2">
<textarea %DISABLED% rows="5" cols="120" name="comment" wrap="soft"></textarea>
</td>
</tr>
<tr>
<td colspan=2 align=middle><input %DISABLED% type="submit" value="Add action" /></td>
</tr>
</table>
%TMPL:END%
%TMPL:DEF{OUTPUT:action}%%POS:BEFORE%%ACTION{who="%URLPARAM{"who"}%" due="%URLPARAM{"due"}%"}% %URLPARAM{"comment" newline="<br />"}%<br />- Created by %WIKIUSERNAME%, %DATE% %TIME%
%TMPL:END%
%TMPL:DEF{PROMPT:poll}%
<table valign="middle">
<tr>
<td align=right>Number of sites?</td>
<td align=left><input %DISABLED% type="text" name="sites" size="3" value="1"></td>
<td align=right>Plugin hacked?</td>
<td align=left>
<select %DISABLED% name="pluginhacked">
<option>no</option>
<option>yes</option>
</select>
</td>
<td align=right>TWiki hacked?</td>
<td align=left>
<select %DISABLED% name="twikihacked">
<option>no</option>
<option>yes</option>
</select>
</td>
<td align=right>Remarks</td>
<td align=left><input %DISABLED% type="text" name="remarks" size="30" value=""></td>
<td>
<input %DISABLED% type="submit" value="Yes, I use it" />
</td>
</tr>
</table>
%TMPL:END%
%TMPL:DEF{OUTPUT:poll}%%POS:BEFORE%| %WIKIUSERNAME% | %URLPARAM{"sites"}% | %URLPARAM{"pluginhacked"}% | %URLPARAM{"twikihacked"}% | %URLPARAM{"remarks"}% |
%TMPL:END%
%TMPL:DEF{PROMPT:table}%
<hr width="60%"/> Date: <input %DISABLED% type="text" size="40" name="comment_date" /> <br /> City: <input %DISABLED% type="text" size="40" name="comment_city" value="" /> <input %DISABLED% type="submit" value="%button|Add%" /> entry <hr width="90%"/>
%TMPL:END%
%TMPL:DEF{OUTPUT:table}%
%POS:BEFORE%| %URLPARAM{"comment_date"}% | %WIKIUSERNAME% | %URLPARAM{"comment_city" }% |
%TMPL:END%
%TMPL:DEF{PROMPT:toctalk}%
<hr width="60%"/> Summary: <input %DISABLED% type="text" size="40" name="comment_summary" /> <br /> <textarea %DISABLED% rows="%rows|3%" cols="%cols|50%" name="comment_text" wrap="soft" onfocus="if(this.value=='%MESSAGE%')this.value=''" onblur="if(this.value=='')this.value='%MESSAGE%'">%MESSAGE%</textarea> <br /> <input %DISABLED% type="submit" value="%button|Add%" /> <hr width="90%"/>
%TMPL:END%
%TMPL:DEF{OUTPUT:toctalk}%
%POS:BEFORE%---+++ %DATE% %TIME% %WIKIUSERNAME%: %URLPARAM{"comment_summary"}%
%POS:BEFORE%%URLPARAM{"comment_text" }%
%POS:BEFORE%
%TMPL:END%
%TMPL:DEF{PROMPT:bookmark}%
<hr width="60%"/> URL: <input %DISABLED% type="text" size="40" name="comment_url" value="http://" /> <br /> Link: <input %DISABLED% type="text" size="40" name="comment_link" /> <br /> Text: <input %DISABLED% type="text" size="40" name="comment_text" value="%MESSAGE%" /> <input %DISABLED% type="submit" value="%button|Add%" /> bookmark <hr width="90%"/>
%TMPL:END%
%TMPL:DEF{OUTPUT:bookmark}%
%POS:BEFORE% * [[%URLPARAM{"comment_url"}%][%URLPARAM{"comment_link"}%]] - %URLPARAM{"comment_text" }%
%TMPL:END%
%TMPL:INCLUDE{"TWiki.UserTemplates"}% %INCLUDE:"TopicName"% ) if Plugin Preferences variable OLDINCLUDE is set to 1
*_text_* as bold italic text. Test if installed: This is bold italic
TWiki/Plugins/DefaultPlugin.pm to add your own rules or to enable JosWiki rules.
%<plugin>_<setting>%, i.e. %DEFAULTPLUGIN_SHORTDESCRIPTION%
*_text_* as bold italic text.
%INCLUDE:"TopicName"% syntax:
data/debug.txt)
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 21 Mar 2004 |
| Change History: | |
| 21 Mar 2004: | Added afterSaveHandler |
| 14 Jul 2001: | Changed to plug&play |
| 27 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/DefaultPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/DefaultPluginDev |
Trash web, where it's hidden but can be "undeleted" with system administrator access.
Click [More] on the control bar at the bottom of the page you want to change, then choose [Rename/move], and make your changes to that screen. There's a link that launches to the ManagingTopics reference page in a pop-up window.
NOTE: The configuration of your site and your own access permissions determine whether you can access these functions.
Note for site administrators: To remove a topic permanently move it to the Trash web, then with file-level access, delete the .txt and .txt,v files manually from /twiki/data/Trash.
Back to: TWikiFAQ
-- PeterThoeny - 09 May 2003TrashAttachment topic in the Trash web, where it's hidden but can be "undeleted" with system administrator access. Please note that you cannot rename an attachment in the current TWiki release.
Click on action on the file in the FileAttachment table, then in the Update attachment screen choose [Move attachment], and make your changes to that screen.
NOTE: The configuration of your site and your own access permissions determine whether you can access these functions.
Note for system administrators: To remove an attachment permanently move it to the Trash.TrashAttachment topic, then with file-level access, delete the file attachment and its ,v repository file manually from twiki/pub/Trash/TrashAttachment.
Back to: TWikiFAQ
-- PeterThoeny - 09 May 2003DONTNOTIFYCHECKBOX preferences variable. See TWikiPreferences for more.
DragonSkin.zip in your twiki installation directory
| Description: | Prosaic but relatively organized look-and-feel, while providing easy access to TWiki tools |
| Screenshot: | |
| Base Name: | dragon |
| Skin Author: | TWiki:Main/ClaussStrauch |
| Skin Version: | 27 Jul 2004 (v1.000) |
| Change History: | |
| 27 Jul 2004: | Initial version (v1.000) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/DragonSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/DragonSkinDev |
| Web | Reprap Site Map | Use to... |
|---|---|---|
| Main |
Welcome to Reprap... Users, Groups, Offices - tour this expandable virtual workspace. | ...get a first-hand feel for TWiki possibilities. |
| TWiki |
Welcome, Registration, and other StartingPoints; TWiki history & Wiki style; All the docs... | ...discover TWiki details, and how to start your own site. |
| Sandbox |
Sandbox test area with all features enabled. | ...experiment in an unrestricted hands-on web. |
| You can use color coding by web for identification and reference. This table is updated automatically based on WebPreferences settings of the individual webs. Contact A.Bowyer@bath.ac.uk if you need a separate collaboration web for your team. | ||
| Legend of icons: |
|
|
%EDITTABLE{...}% variable. Each column can be a text field, a drop down box, a date field, etc. Multiple tables per topic are editable, but only one at a time can be edited.
%EDITTABLE{...}% variable just before an existing table to make it editable, or add the variable anywhere in a topic to start a new table. Parameters:
| Parameter | Comment | Default |
|---|---|---|
header | Specify the header format of a new table like "|*Food*|*Drink*|". Useful to start a table with only a button | (no header) |
format | The format of one column when editing the table. A cell can be a text input field, or any of these edit field types: • Text input field (1 line): | text, <size>, <initial value> | • Textarea input field: | textarea, <rows>x<columns>, <initial value> | • Drop down box: | select, <size>, <option 1>, <option 2>, etc | • Radio buttons: | radio, <size*>, <option 1>, <option 2>, etc | * size indicates the number of buttons per line in edit mode • Checkboxes: | checkbox, <size*>, <option 1>, <option 2>, etc | * size indicates the number of checkboxes per line in edit mode • Fixed label: | label, 0, <label text> | • Row number: | row, <offset> | • Date: | date, <size>, <initial value>, <DHTML date format> | | "text, 16" for all cells |
changerows | Rows can be added and removed if "on";Rows can be added but not removed if "add" | CHANGEROWS Plugin setting |
quietsave | Quiet Save button is shown if "on", hidden if "off" | QUIETSAVE Plugin setting |
include | Other topic defining the EDITTABLE parameters. The first %EDITTABLE% in the topic is used. This is useful if you have many topics with the same table format and you want to update the format in one place. | (none) |
helptopic | Topic name containing help text shown below the table when editing a table. The %STARTINCLUDE% and %STOPINCLUDE% variables can be used in the topic to specify what is shown. | (no help text) |
headerislabel | Table header cells are read-only (labels) if "on"; header cells can be edited if "off" or "0" | "on" |
editbutton | Set edit button text, e.g. "Edit this table"; set button image with alt text, e.g. "Edit table, %PUBURL%/%TWIKIWEB%/TWikiDocGraphics/edittopic.gif"; hide edit button at the end of the table with "hide" (Note: Button is automatically hidden if an edit button is present in a cell) | EDITBUTTON Plugin setting |
<initial value> (of text input field) and <label text> (of fixed label) get expanded when a new row is added. This can be used for example to add a timestamp to a label. You can escape characters if you do not want that:
| Text: | To Escape: |
|---|---|
$quot | Double quote ("). Alternatively write \" to escape it |
$percnt | Percent sign (%) |
$dollar | Dollar sign ($) |
$nop or $nop() | Is a "no operation" |
The date field type allows one to choose a date with a popup calendar. Popup calendar works for Netscape 6.0 or better, all other Gecko-based browsers, Internet Explorer 5.0 or better for Windows, Opera 7 and Konqueror 3.1.2. The ... button is inactive if the browser cannot support the popup calendar. It uses the nice Mishoo DHTML calendar, see also TWiki:Codev/JavaScriptDatePickerForForm %EDITCELL{ "type, ..." }% variable at the end of the cell content. This is useful to override the per column %EDITTABLE{ format="..." }% settings, or to create tables with key/value rows. All edit field types of the format="..." parameter are supported. For example, to define a text field, type: | cell content %EDITCELL{ "text, 20" }% |
It is also possible to place the edit button inside a cell instead of default location below the table. Type | %EDITCELL{ "editbutton, 1, Edit this table" }% | to show a button, or | %EDITCELL{ "editbutton, 1, Edit table, Image-URL" }% | to show a button image with alternate text.
Note: The %EDITCELL{ }%=variable cannot be used by itself; place an =%EDITTABLE{ }%=variable at the beginning of a table where you want to use =%EDITCELL{ }% variables.
%EDITTABLE{ format="| row, -1 | text, 20, init | select, 1, one, two, three, four | radio, 3,:-),:-I,:-( | label, 0, %SERVERTIME{"$day $mon $year $hour:$min"}% |" changerows="on" }%
Note: Please do not save this example table! Use TWiki:Sandbox.EditTablePluginTesting if you want to try out this Plugin
If this plugin is installed you will see an [ Edit table ] button above; if you were to click on it (please don't, use TWiki:Sandbox.EditTablePluginTesting for testing) you get this form:
The following example shows a simple table with key/value rows. The default edit field type for the value column is a text field. This is overloaded by a selector for the Gender, and a date picker for the DOB. This is typically used by TWiki applications where new topics with tables are created based on a template topic.
You type:
%EDITTABLE{ format="| label | text, 40 |" }%
|*Key*|*Value*|
| Name: | John Smith |
| Gender: | M %EDITCELL{select, 1, , F, M}% |
| DOB: | 1999/12/31 %EDITCELL{date, 10}% |
| City: | New York |
|
Screenshot:
|
Screenshot in edit mode:
|
%<plugin>_<setting>%, for example, %EDITTABLEPLUGIN_SHORTDESCRIPTION%
data/debug.txt. Default: 0
on, off, add
on to show the Quiet Save button, off to hide
button text, or specify alternate text, image URL
calendar-<code>.js language file: en, af, br, ca, cs-win, da, de, du, el, es, fr, hr, hr-utf8, hu, it, jp, nl, no, pl, pt, ro, ru, sk, sp, sv, tr, zh
JSCALENDAR* settings first in the TWiki Preferences, then in above Plugin settings
| ... ||) and cell justification (e.g. | centered | right |)
%ATTACHURL% get expanded unless they are in a label
%EDITTABLE{}% statements on the same line in the source
select,1,%<nop>X%,%<nop>Y%
EditTablePlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/EditTablePlugin.txt | Plugin topic |
data/TWiki/EditTablePlugin.txt,v | Plugin topic repository |
lib/TWiki/Plugins/EditTablePlugin.pm | Plugin Perl module |
pub/TWiki/EditTablePlugin/edittable.gif | Edit table button image |
pub/TWiki/EditTablePlugin/*.gif | Screenshots and Mishoo DHTML calendar images |
pub/TWiki/EditTablePlugin/README | Mishoo DHTML calendar README |
pub/TWiki/EditTablePlugin/release-notes.html | Mishoo DHTML calendar release notes |
pub/TWiki/EditTablePlugin/*.js | Mishoo DHTML calendar JavaScript files |
pub/TWiki/EditTablePlugin/calendar-system.css | Mishoo DHTML calendar stylesheet |
viewauth script to authenticate the user. As described in TWikiAccessControl, copy the view script to viewauth (or better, create a symbolic link) and add viewauth to the list of authenticated scripts in the .htaccess file.
| Plugin Author: | TWiki:Main/PeterThoeny |
| Plugin Version: | 16 Sep 2004 |
| Change History: | |
| 16 Sep 2004: | Added radio buttons and checkbox controls; escaped "|" pipe symbol found in input fields to preserve tables |
| 01 Aug 2004: | Fixed bug where edittable did not work if at the end of a topic |
| 07 Apr 2004: | Fixed bug where two tables got updated when you edit and save a table included into a topic containing other edit tables |
| 02 Mar 2004: | Default for %EDITCELL{editbutton}% is EDITBUTTON preference |
| 27 Feb 2004: | Added QUIETSAVE setting and quietsave parameter; image for Edit button |
| 18 Feb 2004: | Doc fixes; allow edit button anywhere in a cell not just at the end of a cell |
| 17 Feb 2004: | Added per cell definition of edit field types with %EDITCELL{}% variable; added headerislabel and editbutton parameters |
| 20 Dec 2003: | Fixed bug where calendar did not work after adding a row (TWiki:Main/PaulineCheung); added all language files of Mishoo DHTML calendar 0.9.5 |
| 13 Dec 2003: | Added CHANGEROWS, JSCALENDARDATEFORMAT, JSCALENDARLANGUAGE, JSCALENDAROPTIONS settings |
| 16 Oct 2003: | small typo fixed (garbled if ---+ header on top) |
| 15 Oct 2003: | new date field type with javascript calendar - CN |
| 14 Oct 2003: | docfix: the documentation page was an old one - CN |
| 13 Oct 2003: | bugfix: %-vars in select were resetted to first on add/del row - CN |
| 18 Sep 2003: | incompatibility: changed default of changerows to on; support for %-vars, Quiet save for saving without notification; all other fixes in Dev topic integrated - CN |
| 08 Nov 2002: | Prevent variable expansion in label text; added escape characters |
| 27 Jun 2002: | New helptopic parameter |
| 26 Jun 2002: | Support for variables in included EDITTABLE parameters; fixed problem with HTML in cells |
| 21 May 2002: | Added fixed label format; new changerows="add" parameter |
| 27 Apr 2002: | Fixed bug where text after a double quote in a cell disappeared |
| 18 Apr 2002: | Fixed bug where table was breaking when pasting multiple lines into an edit field using Netscape on Unix |
| 08 Apr 2002: | Check for change permission and edit lock of topic |
| 05 Apr 2002: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | Mishoo DHTML calendar (version 0.9.5 preinstalled); TWiki version 01 Feb 2003 or later |
| Perl Version: | 5.0 |
| TWiki:Plugins/Benchmark: | GoodStyle 98%, FormattedSearch 98%, EditTablePlugin 95% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/EditTablePlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/EditTablePluginDev |
TWiki/Plugins/EmptyPlugin.pm to <name>Plugin.pm and customize the plugin.
<name>Plugin topic in the TWiki web. Do so by visiting http://TWiki.org/cgi-bin/view/Plugins/ and starting a new topic to get the default plugin topic text (don't save the topic). Customize your plugin topic to your needs.
%<plugin>_<setting>%, i.e. %EMPTYPLUGIN_SHORTDESCRIPTION%
data/debug.txt)
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 21 Mar 2003 |
| Change History: | |
| 21 Mar 2004: | Added afterSaveHandler |
| 14 Jul 2001: | Changed to plug&play |
| 27 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| TWiki:Plugins/Benchmark: | GoodStyle 99%, FormattedSearch 99%, EmptyPlugin 99% |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/EmptyPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/EmptyPluginDev |
Attach link at the bottom of the page. The Attach screen lets you browse for a file, add a comment, and upload it. The uploaded file will show up in the File Attachment table.
*.php files are renamed to *.php.txt so that no one can place code that would be read in a .php file.
%ATTACHFILESIZELIMIT% variable of the TWikiPreferences, currently set at 0 KB.
Manage on the Attachment to be moved.
Move. The attachment and its version history are moved. The original location is stored as topic Meta Data.
Trash, topic TrashAttachment.
Attach file: Sample.txt
Edit topic and enter: %ATTACHURL%/Sample.txt
Preview: %ATTACHURL%/Sample.txt text appears as: http://reprap.org/pub/TWiki/FileAttachment/Sample.txt, a link to the text file.
%PUBURL%/%WEB%/OtherTopic/Sample.txt (if it's within the same web)
%PUBURL%/Otherweb/OtherTopic/Sample.txt (if it's in a different web)
Attach file: Sample.txt
Edit topic and write text: %INCLUDE{"%ATTACHURL%/Sample.txt"}%
Attach file: Smile.gif
Edit topic and write text: %ATTACHURL%/Smile.gif
Preview: text appears as
, an image.
Attachment Action Size Date Who Comment Sample.txt
manage 0.1 K 22 Jul 2000 - 19:37 PeterThoeny Just a sample Smile.gif
manage 0.1 K 22 Jul 2000 - 19:38 PeterThoeny Smiley face
Manage link takes you to a new page that looks like this:
h means the attachment is hidden, it isn't listed when viewing a topic.
Hide file checkbox, then click Change properties.
%SEARCH{...}% as documented in TWikiVariables is a table consisting of topic names and topic summaries. Use the format="..." parameter to customize the search result. The format parameter typically defines a bullet or a table row containing variables, such as %SEARCH{ "food" format="| $topic | $summary |" }%.
header="..." parameter
Use the header parameter to specify the header of a search result. It should correspond to the format of the format parameter. This parameter is optional. header="| *Topic:* | *Summary:* |"
2. format="..." parameter
Use the format parameter to specify the format of one search hit.
format="| $topic | $summary |"
Variables that can be used in the format string:
| Name: | Expands To: |
|---|---|
$web | Name of the web |
$topic | Topic name |
$topic(20) | Topic name, "- " hyphenated each 20 characters |
$topic(30, -<br />) | Topic name, hyphenated each 30 characters with separator "-<br />" |
$topic(40, ...) | Topic name, shortended to 40 characters with "..." indication |
$parent | Name of parent topic; empty if not set |
$parent(20) | Name of parent topic, same hyphenation/shortening like $topic() |
$text | Formatted topic text. In case of a multiple="on" search, it is the line found for each search hit. |
$locked | LOCKED flag (if any) |
$date | Time stamp of last topic update, e.g. 22 Nov 2009 - 11:15 |
$isodate | Time stamp of last topic update, e.g. 2009-11-22T11:15Z |
$rev | Number of last topic revision, e.g. 1.4 |
$username | Login name of last topic update, e.g. jsmith |
$wikiname | Wiki user name of last topic update, e.g. JohnSmith |
$wikiusername | Wiki user name of last topic update, like Main.JohnSmith |
$createdate | Time stamp of topic revision 1.1 |
$createusername | Login name of topic revision 1.1, e.g. jsmith |
$createwikiname | Wiki user name of topic revision 1.1, e.g. JohnSmith |
$createwikiusername | Wiki user name of topic revision 1.1, e.g. Main.JohnSmith |
$summary | Topic summary, with 162 characters |
$summary(50) | Topic summary, with 50 characters |
$summary(showvarnames) | Topic summary, with %ALLTWIKI{...}% variables shown as ALLTWIKI{...} |
$summary(noheader) | Topic summary, with leading ---+ headers removedNote: The tokens can be combined into a comma separated list like $summary(100, showvarnames, noheader) |
$formname | The name of the form attached to the topic; empty if none |
$formfield(name) | The field value of a form field; for example, $formfield(TopicClassification) would get expanded to PublicFAQ. This applies only to topics that have a TWikiForm |
$formfield(name, 10) | Form field value, "- " hyphenated each 10 characters |
$formfield(name, 20, -<br />) | Form field value, hyphenated each 20 characters with separator "-<br />" |
$formfield(name, 30, ...) | Form field value, shortended to 30 characters with "..." indication |
$pattern(reg-exp) | A regular expression pattern to extract some text from a topic (does not search meta data; use $formfield instead). In case of a multiple="on" search, the pattern is applied to the line found in each search hit.• Specify a RegularExpression that covers the whole text (topic or line), which typically starts with .*, and must end in .* • Put text you want to keep in parenthesis, like $pattern(.*?(from here.*?to here).*) • Example: $pattern(.*?\*.*?Email\:\s*([^\n\r]+).*) extracts the email address from a bullet of format * Email: ... • This example has non-greedy .*? patterns to scan for the first occurance of the Email bullet; use greedy .* patterns to scan for the last occurance • Limitation: Do not use .*) inside the pattern, e.g. $pattern(.*foo(.*)bar.*) does not work, but $pattern(.*foo(.*?)bar.*) does • Note: Make sure that the integrity of a web page is not compromised; for example, if you include an HTML table make sure to include everything including the table end tag |
$n or $n() | New line |
$nop or $nop() | Is a "no operation". This variable gets removed; useful for nested search |
$quot | Double quote ("). Alternatively write \" to escape it |
$percnt | Percent sign (%) |
$dollar | Dollar sign ($) |
%SEARCH{ "FAQ" scope="topic" nosearch="on" nototal="on" header=" * *Topic: Summary:*" format=" * [[$topic]]: $summary" }%
To get this:
TopicClassification field, an OperatingSystem field and an OsVersion field we could write:
| *Topic:* | *OperatingSystem:* | *OsVersion:* | %SEARCH{ "[T]opicClassification.*?value=\"[P]ublicFAQ\"" scope="text" regex="on" nosearch="on" nototal="on" format="| [[$topic]] | $formfield(OperatingSystem) | $formfield(OsVersion) |" }%
To get this:
| Topic: | OperatingSystem: | OsVersion: |
|---|---|---|
| IncorrectDllVersionW32PTH10DLL | OsWin | 95/98 |
| WinDoze95Crash | OsWin | 95 |
%SEARCH{ "__Back to\:__ TWikiFAQ" scope="text" regex="on" nosearch="on" nototal="on" header="TWiki FAQs:" format=" * $pattern(.*?FAQ\:[\n\r]*([^\n\r]+).*) [[$topic][Answer...]]" }%
To get this:
TWiki FAQs:
%SEARCH{ "culture" format=" * $topic is referenced by: (list all references)" nosearch="on" nototal="on" }%
%SEARCH{ "(topic found in first search)" format="$topic" nosearch="on" nototal="on" separator=", " }%
$percnt to escape the leading percent of the second search
\" to escape the double quotes
$dollar to escape the $ of $topic
$nop to escape the }% sequence
%SEARCH{ "culture" format=" * $topic is referenced by:$n * $percntSEARCH{ \"$topic\" format=\"$dollartopic\" nosearch=\"on\" nototal=\"on\" separator=\", \" }$nop%" nosearch="on" nototal="on" }%
To get this:
$dollarpercntSEARCH{ for level three, $dollardollarpercntSEARCH{ for level four, etc.
%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="| [[$topic]] | $wikiusername | $date |" limit="7" }%
To get this:
| WebStatistics | TWikiGuest | 09 Nov 2009 - 22:43 |
| TWikiRegistration | AdrianBowyer | 15 Jul 2009 - 12:37 |
| RepRapRegister | SimonMcAuliffe | 02 Mar 2007 - 21:18 |
| TWikiPreferences | SimonMcAuliffe | 19 Feb 2007 - 21:10 |
| WebTopBar | SimonMcAuliffe | 11 Dec 2006 - 10:33 |
| FileAttachment | ForrestHiggs | 28 Nov 2006 - 08:20 |
| CaptchaPlugin | KoenMartens? | 03 Aug 2006 - 10:19 |
%CALC{$SET(weekold, $TIMEADD($TIME(), -7, day))}% %SEARCH{ "." scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="$percntCALC{$IF($TIME($date) < $GET(weekold), <nop>, | [[$topic]] | $wikiusername | $date | $rev |)}$percnt" limit="100" }%
weekold variable to the serialized date of exactly one week ago
$percnt makes sure that the CALC gets executed once for each search hit
weekold date
<nop> is returned, which gets removed at the end of the TWiki rendering process
%URLPARAM{"..."}% variable. Example:
Write this:
<form action="%SCRIPTURLPATH%/view%SCRIPTSUFFIX%/TWiki/FormattedSearch">
Find Topics:
<input type="text" name="q" size="32" value="%URLPARAM{"q"}%" />
<input type="submit" value="Search" />
</form>
Result:
%SEARCH{ search="%URLPARAM{"q"}%" format=" * $web.$topic: %BR% $summary" nosearch="on" }%
To get this:
Result:
Number of topics: 0
-- TWiki:Main.PeterThoeny - 26 Jul 2004-- Main.TWikiGuest - 22 Nov 2009
-- [[Main.TWikiGuest][ZXQ]] - 22 Nov 2009
* Initials: ZXQ to your home page.
Contributors: at the end of the page
http://etcete.ra/... - it'll be clear to anyone where they're headed on click.
01 Sep 2003 or 2003/09/01 is preferred. It's clearer than the xx/xx/xx format, where a date like 9/1/01 can mean either Jan or Sep, depending on the local conventions of the readers. For months, use the first three letters: Jan, Feb, Mar, Apr,...
Edit on the lower toolbar. To see earlier versions, click More, then check Raw text format and click View revision. A bit of HTML experience can't hurt, but you'll soon see with TWikiShorthand how far that is from necessary.
%<plugin>_<setting>%, for example, %HEADLINES_SHORTDESCRIPTION%
data/debug.txt. Default: 0
0, default: 30
100
* Set HEADER = | *[[$channellink][$channeltitle]] [[$imagelink][<img src="$imageurl" alt="$imagetitle" border="0" />]]* |
* Set FORMAT = | [[$link][$title]] |
%HEADLINES{...}% variable gets expanded to the content pulled from an RSS feed.
| %HEADLINES% Parameter | Explanation | Default |
|---|---|---|
href | URL of RSS feed | None; is required |
refresh | Refresh rate in minutes for caching feed; "0" for no caching | Global REFRESH setting |
limit | Maximum number of items shown | Global LIMIT setting |
header | Header. Can include these variables: - $channeltitle: Title of channel - $channellink: Link of channel - $channeldescription: Description of channel - $imagetitle: Title text for site - $imagelink: Link for site - $imageurl: URL of image - $imagedescription: Description of image | Global HEADER setting |
format | Format of one item. Can include these variables: - $title: News item title - $link: News item link - $description: News item description | Global FORMAT setting |
%HEADLINES{ href="http://slashdot.org/slashdot.rdf" }% to get the latest Slashdot news in table format:
| HEADLINES Plugin Error |
|---|
| HeadlinesPlugin: Can't read http://slashdot.org/slashdot.rdf (301 Moved Permanently) |
%HEADLINES{ href="http://www.moreover.com/cgi-local/page?o=rss&c=Aerospace%20and%20defense%20industry%20news" header=" * [[$channellink][$channeltitle]]:" format=" * [[$link][$title]] ($description)" }% to get Aerospace and defense industry news rendered as a bullet list:
TWiki::Net::getUrl() function. The plugin might break in a future TWiki release.
TWiki::Net::getUrl()
HeadlinesPlugin.zip in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/HeadlinesPlugin.txt | Plugin topic |
lib/TWiki/Plugins/HeadlinesPlugin.pm | Plugin Perl module |
| Plugin Author: | PeterThoeny |
| Plugin Version: | 11 May 2005 (V1.004) |
| Change History: | |
| 11 May 2005: | added DevelopBranch? compatability (TWiki:Main.WillNorris) |
| 31 Oct 2004: | Fixed taint issue by TWiki:Main.AdrianWeiler; small performance improvement |
| 29 Oct 2004: | Fixed issue of eternal caching if mod_perl or SpeedyCGI is used |
| 02 Aug 2002: | Implemented caching of feeds, thanks to TWiki:Main/RobDuarte |
| 11 Jun 2002: | Initial version (V1.000) |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.004 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPlugin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/HeadlinesPluginDev |
| Argument | Description |
|---|---|
| topic | comma separated list of topics whose attachments should be displayed (default: the current topic) |
| size | the thumbnail size, the actual geometries of a size can be configured below; possible values: tiny, small, medium, large, huge (default: medium) |
| columns | number of thumbnais to be displayed in one row of the gallery (default: 4) |
| docrels | flag to disable/enable document relations between images; possible values are on, off, 0, 1 (default: on) |
| maxwidth | maximal display width of an image; images are scaled not to exceed this limit while preserving aspect ratio (default: 640) |
| maxheight | maximal display height of an image (default: 480) |
| minwidth | minimal display width of an image; images are scaled not to fall below this limit while preserving aspect ratio (default: 0) |
| minheight | minimal display height of an image (default: 0) |
| format | html format of an image (default: <a href="$origurl"><img src="$imageurl" title="$comment" width="$width" height="$height"/></a>) |
| titles | toggles image and thumnail titles on and off (default: on) |
| title | html format of an image title; "off" will hide the image's title (default: $comment ($imgnr/$nrimgs) $reddot) |
| thumbtitle | html format of a thumbnail title; "off" will hide the thumbnail's title (default: $comment $reddot) |
topic is meaningful to %NRIMAGES%.
| Variable | Description |
|---|---|
| $web | the web the image is located |
| $topic | the topic the image is located |
| $nrimages | the total number of images in the gallery |
| $n | a linefeed |
| $reddot | render a red-dot anchor to access the attachment |
| $width | the display width of the image |
| $height | the display height of the image |
| $thumbwidth | the thumbnail width of the image |
| $thumbheight | the thumbnail height of the image |
| $origwidth | the original width of the image |
| $origheight | the original height of the image |
| $size | the size of the image |
| $sizeK | the size of the image in kilobytes |
| $comment | the comment of the image (with its sequence number stripped off) |
| $imgnr | the sequence number of the image |
| $date | the date when the image has been uploaded |
| $version | the version of the image attachment |
| $name | the filename of the image |
| $wikiusername | the wikiusername who uploaded the image |
| $username | the username who uploaded the image |
| $imageurl | the url path of the display image |
| $thumburl | the url path of the thumbnail image |
| $origurl | the url path pointing to the original image attachment |
| Class | Description |
|---|---|
| igp | division for the complete output of the image gallery |
| igpThumbNails | division of all thumbnails |
| igpThumbNailsTable | table of thumbnail images |
| igpThumbNail | table cell of one thumbnail image |
| igpThumbNailTitle | table cell of the thumbnail title |
| igpPictureTable | table of the display image and the navigation bar |
| igpPicture | table cell of the display image |
| igpPictureTitle | division of the title of the display image |
| igpNavigation | table cell of the navigation bar |
| igpRedDot | span surrounding the red dot |
| igpAlert | span surrounding error messages |
<nr> if its attachment comment has the format
<nr><space>-<space><comment>Note, that the $comment variable will only display
<comment> , that is with
<nr><space>-<space> stripped off.
= ImageGalleryPlugin.zip= in your twiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/ImageGalleryPlugin.txt | plugin topic |
pub/TWiki/ImageGalleryPlugin/style.css | cascading style sheets |
lib/TWiki/Plugins/ImageGalleryPlugin.pm | plugin interface |
lib/TWiki/Plugins/ImageGalleryPlugin/Core.pm | core implementation |
| Plugin Author: | TWiki:Main/MichaelDaum |
| Plugin Version: | v3.1 (14 Sep 2005) |
| Change History: | |
| 14 Sep 2005 | don't strictly depend on normalizeFilename() |
| 15 June 2005 | new release |
| 10 May 2005 | fixed igp id clash error found by TWiki:Main/MartinCleaver; capture ImageMagick error messages; don't trust attachment info - check for attachment existence aswell ; added refresh query parameter to recompute images |
| 09 May 2005 | fixed errors reported by TWiki:Main/MarcelTrap; added support for multiple topics (proposed by TWiki:Main/MartinCleaver; added %NRIMAGES% tag |
| fix error when called from within rename view | |
| 03 May 2005 | fixed thumbnail resizing; reintroduced titles parameter; support for multiple galleries per topic |
| 27 Apr 2005 | complete rewrite |
| 1 Aug 2003 | Updates from feedback from a Windows installation |
| 25 Jul 2003 | Initial version posted to TWiki.org |
| 15 Mar 2002 | Initial (internal) version |
| CPAN Dependencies: | Image::Magick |
| Other Dependencies: | |
| Perl Version: | 5 something ? (not sure--i'm using 5.8.0) |
| Plugin Home: | TWiki:Plugins/ImageGalleryPlugin |
| Feedback: | TWiki:Plugins/ImageGalleryPluginDev |
%INCLUDE{...}% Variable %INCLUDE{...}% variable to embed the content of another topic or web page inside a Reprap topic. The whole content or only parts of a page can be included. If needed, set a proxy server in TWikiPreferences.
%INCLUDE{ "page" pattern="reg-exp" rev="1.2" }%
"page": %INCLUDE{"WebNotify"}%
Web.Topic name specifying a topic in another web, e.g., %INCLUDE{"TWiki.SiteMap"}%
http protocol, domain name and optional port number, e.g., %INCLUDE{"http://twiki.org:80/index.html"}%. Supported content types are text/html and text/plain. The full page is included by default, but the HTML header and scripts are stripped in case it is a web page.
pattern="reg-exp": '^') to end and contains the text you want to keep in parenthesis, e.g., pattern="^.*?(from here.*?to here).*". You need to make sure that the integrity of a web page is not compromised; for example, if you include a table, make sure to include everything including the table end tag.
rev="1.x": %STARTINCLUDE%, %STOPINCLUDE% and/or a pattern parameter. A pattern will only search between %STARTINCLUDE% and %STOPINCLUDE%.
<pre>
%INCLUDE{"http://domain/~qa/v1.1/REDTest.log.txt"}%
</pre>
%INCLUDE{"http://www.google.com/robots.txt"}%
Tokyo: %INCLUDE{"http://TWiki.org/cgi-bin/xtra/tzdate?tz=Asia/Tokyo" pattern="^.*<\!--tzdate:date--<(.*?)<\!--/tzdate:date-->.*"}%</b<&/code>
*_text_* as bold italic text.
"$SUM( $ABOVE() )" to tables located in Reprap topics.
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
:-) for
or :cool: for
| earlyInitPlugin | earlyInitPlugin | ||
| initPlugin | initPlugin | TWiki::Plugins::DefaultPlugin::initPlugin TWiki::Plugins::SpreadSheetPlugin::initPlugin TWiki::Plugins::CaptchaPlugin::initPlugin TWiki::Plugins::CommentPlugin::initPlugin TWiki::Plugins::EditTablePlugin::initPlugin TWiki::Plugins::HeadlinesPlugin::initPlugin TWiki::Plugins::ImageGalleryPlugin::initPlugin TWiki::Plugins::InterwikiPlugin::initPlugin TWiki::Plugins::NewsPlugin::initPlugin TWiki::Plugins::RenderListPlugin::initPlugin TWiki::Plugins::SlideShowPlugin::initPlugin TWiki::Plugins::SmiliesPlugin::initPlugin TWiki::Plugins::TablePlugin::initPlugin | |
| initializeUserHandler | initializeUserHandler | ||
| registrationHandler | registrationHandler | ||
| beforeCommonTagsHandler | beforeCommonTagsHandler | ||
| commonTagsHandler | commonTagsHandler | TWiki::Plugins::DefaultPlugin::commonTagsHandler TWiki::Plugins::SpreadSheetPlugin::commonTagsHandler TWiki::Plugins::CaptchaPlugin::commonTagsHandler TWiki::Plugins::CommentPlugin::commonTagsHandler TWiki::Plugins::EditTablePlugin::commonTagsHandler TWiki::Plugins::HeadlinesPlugin::commonTagsHandler TWiki::Plugins::ImageGalleryPlugin::commonTagsHandler TWiki::Plugins::SlideShowPlugin::commonTagsHandler TWiki::Plugins::SmiliesPlugin::commonTagsHandler | |
| afterCommonTagsHandler | afterCommonTagsHandler | ||
| startRenderingHandler | startRenderingHandler | TWiki::Plugins::DefaultPlugin::startRenderingHandler TWiki::Plugins::InterwikiPlugin::startRenderingHandler TWiki::Plugins::RenderListPlugin::startRenderingHandler | |
| outsidePREHandler | outsidePREHandler | TWiki::Plugins::DefaultPlugin::outsidePREHandler TWiki::Plugins::SmiliesPlugin::outsidePREHandler TWiki::Plugins::TablePlugin::outsidePREHandler | |
| insidePREHandler | insidePREHandler | ||
| endRenderingHandler | endRenderingHandler | TWiki::Plugins::EditTablePlugin::endRenderingHandler TWiki::Plugins::TablePlugin::endRenderingHandler | |
| beforeEditHandler | beforeEditHandler | ||
| afterEditHandler | afterEditHandler | ||
| beforeSaveHandler | beforeSaveHandler | TWiki::Plugins::NewsPlugin::beforeSaveHandler | |
| afterSaveHandler | afterSaveHandler | ||
| beforeAttachmentSaveHandler | beforeAttachmentSaveHandler | ||
| afterAttachmentSaveHandler | afterAttachmentSaveHandler | ||
| writeHeaderHandler | writeHeaderHandler | ||
| redirectCgiQueryHandler | redirectCgiQueryHandler | ||
| getSessionValueHandler | getSessionValueHandler | ||
| setSessionValueHandler | setSessionValueHandler | ||
| renderFormFieldForEditHandler | renderFormFieldForEditHandler | ||
| renderWikiWordHandler | renderWikiWordHandler | ||
NoneNote: The diagnostics are provided by the
%FAILEDPLUGINS% variable
Related Topics: TWikiPlugins, TWikiPreferences
-- TWiki:Main.MikeMannix - 12 May 2002 view.tmpl (in the templates directory). In the HTML at the top, the body tag has the page background hardcoded to white bgcolor="#ffffff". You can change that color value to new variable. First, define a new preferences variable in the site-level TWikiPreferences, e.g. * Set =PAGEBGCOLOR = #d0d0d0, then edit the view.tmpl template file and change bgcolor="#ffffff" to bgcolor="%PAGEBGCOLOR%". If you want you can set the page background color individualy per web, simple add a * Set =PAGEBGCOLOR = #d0d0d0 bullet to the WebPreferences to overload the site-level preferences. (Without font color control, you'll have to stick to light colors.
WebIndex with WebTopicList, and save.
Edit is disabled. Instead, go to More and view the topic in raw format.
HELP, WARN etc. You can also add your own images, e.g. a NEW, or a ASK to ask question.
of course) can help them. On HELP pages, most people tend to jump around looking for answers rather than reading through - icons help point out the most important bits.
How to create your own set of icons:
Preferences topic: TWikiPreferences for site-wide use, or WebPreferences for use in one web only.
Attach a graphic (the ones on this page are 16x16 pixels), then define a Preference Variable with a short but recognizable name.
%TEST% to get %TEST% - see how it's done.
---++ , see TWikiShorthand).
For example, you may want to put all your custom variables in TWikiPreferences right on top of the page, and generate table of contens, like:
w3m pager/browser for Linux. This is a text based version similar to lynx but it includes text editor features and a configurable command set to act like lynx if you are more accustomed to it.
__Here's a list of topics I've been involved in recently:__
---++++ Codev
%SEARCH{ "InstantEnhancements" web="Codev" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
---++++ Support
%SEARCH{ "InstantEnhancements" web="Support" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="20"}%
---++++ TWiki
%SEARCH{ "InstantEnhancements" web="TWiki" scope="text" nosearch="on" nosummary="on" noheader="on" nototal="on" order="modified" reverse="on" limit="10"}%
End Copy
The SEARCH variable has many more formatting options, see TWikiVariables.
<table>
%SEARCH{ "\.*" scope="topic" regex="on" nosearch="on" nototal="on" order="modified" reverse="on" format="<tr><td> [[$topic][$topic]] </td><td> $wikiusername </td><td> $date </td></tr>" limit="15" }%
</table>
Edit.
Set ALLOWTOPICCHANGE = Main.UserName, Main.GroupName
<!-- on the line _above the setting, and --> on the line below.
Set WIKILOGOIMG = %PUBURL%/TWiki/MyLogo/mylogo.gif
[Add] button, and select the form if it isn't alredy enabled. Then, click the title to get to the actual form, [Edit], and carefully change values, probably basic page classifications. You'll get some increased value, and hands-on experience with TWikiForms, without having to read up about them first. view.tmpl (in the templates directory) for some dramatic effects. The top of the template is mostly regular HTML with some variables. Open up some space in the <head> area, and you can drop in reliable JavaScripts - a pop-up window script, for example - or tag it as an external script.
ExternalSite:Page it will be linked automatically to the page on the external site. The link points to the URL corresponding to the ExternalSite alias below, concatenated to the Page you choose. Example: Type Wiki:RecentChanges to get Wiki:RecentChanges, the RecentChanges page at the original Wiki site.
| External site alias | URL | Tooltip help text |.
$page variables; the variable gets expanded to the page name.
<nop> escape code), no internal WikiWord links, and no external links. Hint: Escape 'WikiWords' and '$page'.
| Alias: | URL: | Tooltip Text: |
|---|---|---|
| Acronym | http://www.acronymfinder.com/af-query.asp?Acronym=$page&String=exact | Look up '$page' on Acronym Finder site |
| Dictionary | http://www.dictionary.com/cgi-bin/dict.pl?term= | Look up '$page' at Dictionary.com |
| http://google.com/search?q= | Search for '$page' on Google | |
| Group | http://groups.google.com/groups?hl=en&safe=off&group= | News group '$page' at Google.com |
| ISBN | http://service.bfast.com/bfast/click?bfmid=2181&sourceid=38704253&bfpid= | Book with ISBN#$page (One click patent? Say no to Amazon!) |
| RFC | http://www.faqs.org/rfcs/rfc$page.html | IETF RFC #$page |
| Alias: | URL: | Tooltip Text: |
|---|---|---|
| Advogato | http://www.advogato.org/ | '$page' on Advogato community site (with peer review) |
| C2find | http://c2.com/cgi/wiki?FindPage&value= | Search '$page' on the original 'WikiWikiWeb' site |
| DolphinWiki | http://www.object-arts.co.uk/wiki/html/Dolphin/$page.htm | '$page' on Dolphin Wiki site |
| FoxWiki | http://fox.wikis.com/wc.dll?Wiki~ | '$page' on Fox Wiki site |
| HammondWiki | http://www.dairiki.org/HammondWiki/index.php3? | '$page' on 'HammondWiki' site |
| LegoWiki | http://www.object-arts.com/wiki/html/Lego-Robotics/ | '$page' on 'LegoWiki' site |
| MbTest | http://www.usemod.com/cgi-bin/mbtest.pl? | '$page' on 'UseMod' Wiki variant |
| MeatBall | http://www.usemod.com/cgi-bin/mb.pl? | '$page' on 'MeatBall' site, a 'UseMod' Wiki variant |
| MoinMoin | http://moin.sourceforge.net/cgi-bin/moin/moin/ | '$page' on 'MoinMoin' Wiki site |
| MuWeb | http://www.dunstable.com/scripts/MuWebWeb? | '$page' on 'MuWeb' site |
| OrgPatterns | http://www.easycomp.org/cgi-bin/OrgPatterns? | '$page' on Organizational Patterns site |
| PhpWiki | http://phpwiki.sourceforge.net/phpwiki/index.php3? | '$page' on Wiki site written in PHP |
| PolitizenWiki | http://www.politizen.com/wiki.asp? | '$page' on 'PolitizenWiki' site |
| PPR | http://c2.com/cgi/wiki? | '$page' on the original 'PortlandPatternRepository' site |
| PyWiki | http://www.voght.com/cgi-bin/pywiki? | '$page' on Wiki site written in Python |
| Squeak | http://minnow.cc.gatech.edu/squeak/ | '$page' on Squeak Smalltalk Wiki |
| TWiki | http://twiki.org/cgi-bin/view/ | '$page' on TWiki.org |
| UseMod | http://www.usemod.com/cgi-bin/wiki.pl? | '$page' on 'UseMod' Wiki site |
| VisualWorks | http://wiki.cs.uiuc.edu/VisualWorks/ | '$page' on 'VisualWorks' site |
| Wiki | http://c2.com/cgi/wiki? | '$page' on the original 'WikiWikiWeb' site |
| Wikipedia | http://en.wikipedia.org/wiki/ | '$page' on 'Wikipedia' |
| ZWiki | http://joyful.com/zwiki/ | '$page' on Zope's Wiki |
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic. This plugin is inspired by UseMod Wiki's inter-wiki links, http://www.usemod.com/cgi-bin/wiki.pl?InterWiki.
ExternalSite:Page to create a link that points to the Page on the ExternalSite server.
ExternalSite aliases are defined in the InterWikis topic.
TWikisite:Webname/SomePage
%<plugin>_<setting>%, for example, %INTERWIKIPLUGIN_SHORTDESCRIPTION%
ExternalSite:Page text to external sites based on aliases defined in the InterWikis topic
0 or 1, default is 0)
data/debug.txt)
InterwikiPlugin.zip in your TWiki installation directory. Content:
| File: | Description: |
|---|---|
data/TWiki/InterwikiPlugin.txt | Plugin topic |
data/TWiki/InterWikis.txt | Link rules topic for inter-site links |
lib/TWiki/Plugins/InterwikiPlugin.pm | Plugin Perl module |
| Plugin Author: | TWiki:Main.AndreaSterbini, TWiki:Main.PeterThoeny |
| Plugin Version: | 25 Aug 2004, 1.005 |
| Change History: | |
| 25 Aug 2004: | Updated InterWikis link rules (no code change) |
| 09 Mar 2004: | Internal changes: Use only official TWiki::Func Plugin API; for increased speed, moved Interwiki link handling from outsidePREHandler to startRenderingHandler |
| 16 Feb 2004: | Support [[Site:Page][label]] Interwiki links (PTh); use TWiki::Func interface for I18N regular expressions (Walter Mundt) |
| 18 Jan 2003: | Allow number sign # in Page name (PTh) |
| 31 Aug 2002: | Allow percent sign % in page name (PTh) |
| 27 Jul 2001: | Allow numbers 0-9 in site name |
| 26 Jul 2001: | Fixed alternating missed link bug due to greedy $postfixPattern (fix by Richard Donkin) |
| 14 Jul 2001: | Changed to plug & play |
| 16 Jun 2001: | Made tooltips optional; prevent Module::Sub type of link |
| 12 Jun 2001: | Added optional tool tips (IE only); added the link rules topic name variable; added flexible link patterns; optional $page in URL |
| 10 Jun 2001: | Changed rules topic to table-based syntax |
| 20 Feb 2001: | Initial version |
| CPAN Dependencies: | none |
| Other Dependencies: | none |
| Perl Version: | 5.0 |
| Plugin Home: | http://TWiki.org/cgi-bin/view/Plugins/InterwikiPlugin (TWiki:Plugins/InterwikiPlugin) |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/InterwikiPluginDev (TWiki:Plugins/InterwikiPluginDev) |
Edit link at the bottom of the page.
Trash web.
[More] (bottom right of page) on the topic to be changed, then, in the new screen, on [Rename/move]. You can now rename and/or move/delete in one operation:
Trash to delete a topic.
[Rename/Move]: the topic will be renamed and links to the topic updated as requested.
[Rename/Move].
Rename/Move/Delete - an instruction line and undo link will appear at the bottom of the modified topic. This allows you to revert from the last modification only.
Trash web - they are NOT physically erased from the server. All webs share Trash - in case of a name conflict with a topic already Trash, the user is alerted and asked to choose a new name.
The Trash web should be be cleared periodically, by archiving (saving) the text and RCS files if required (recommended), then deleting them from the Trash directory.
Trash directory is all that's required for maintenance, it's possible to grant Trash admin privileges to multiple users, while strictly limiting server access.
%<nop>METASEARCH{type="topicmoved" web="TWiki" topic="ManagingTopics"
title="This topic used to exist and was moved to: "}%
<pre> and <verbatim> are honoured - no changes are made to text within these areas.
searchrenameview.tmpl. First, matching topics in the current web are listed - matches are to topic. Next, all webs (including the current one) are listed that match web.topic. Because %SEARCH% is used, webs marked in WebPreferences as NOSEARCHALL will not show up in the search for references to the topic being changed.
Changed references are kept are as short as possible, ex: topic is used in preference to web.topic.
ALLOWTOPICCHANGE and ALLOWTOPICRENAME permission for that topic. To alter referring topics, you need change permission. See TWikiAccessControl for information on setting up access permissions.
search can show matches that will not be updated due to case differences. Other mismatches with actual rendered output are also possible as the approaches are so different.
The following shows some limitations of square bracket processing.
-- TWiki:Main.MikeMannix - 27 Dec 2001[[Old Topic]] => [[NewTopic][Old Topic]] [[old topic]] => [[NewTopic][old topic]] [[old t opic]] => not changed [[OldTopic]] => [[NewTopic]]
data/.htpasswd file to delete their entry (only applies if you are using a .htpasswd file)
FredQuimby line from the Main.TWikiUsers topic
ALLOWWEB/ALLOWTOPIC... declarations, if any.data/Main/FredQuimby.txt and data/Main/FredQuimby.txt,v
WEBBGCOLOR, SITEMAPLIST, SITEMAPWHAT, SITEMAPUSETO and NOSEARCHALL. These variables are used to dynamically generate the SiteMap
WIKIWEBLIST. This must be done by hand
UPPER or UPPERlower. A side effect of this is that if you do use a wiki name, %WEB% must be written as <nop>%WEB% or else it will try to link to a non-existing topic of that name
Oldwebname., including the dot so you'll find references like Oldwebname.SomeTopic
Newwebname.SomeTopic or better yet, to %MAINWEB%.SomeTopic
WIKIWEBLIST variable
twiki/data and rename or remove the web directory
twiki/templates and rename or remove the web directory if present
twiki/pub and rename or remove the web directory if present
%MAINWEB%, default named Main. That means, every WikiName signature - Main.SomeUserName - points to it and would need updating (unless the variable, %MAINWEB%.SomeUserName, is used throughout).
-- TWiki:Main.MikeMannix - 14 Sep 2001 view, preview and edit scripts.
At present support is fairly basic:
| Variable usage: | Comment: |
|---|---|
%META{"form"}% | Show form data, see Form Templates |
%META{"attachments"}% | Show attachments, excluding hidden ones. Options: all="on": Show all attachments i.e. including hidden ones |
%META{"moved"}% | Details of any topic moves |
%META{"parent"}% | Show topic parent. Options: dontrecurse="on": By default recurses up tree, this has some cost. nowebhome="on": Suppress WebHome. prefix="...": Prefix that goes before parents, but only if there are parents, default "". suffix="...": Suffix, only appears if there are parents, default "". separator="...": Separator between parents, default is " > ". |
width: 99% for full window width (default), width: auto to disable.
PatternSkin.zip in your twiki installation directory
pattern and you still don't see the layout as on the screenshot, a few settings in may have been disabled.
Check these variables here:
* %TWIKIWEB%.PatternSkin settings:
* Set TWIKILAYOUTURL = %PUBURL%/%TWIKIWEB%/PatternSkin/layout.css
* Set TWIKISTYLEURL = %PUBURL%/%TWIKIWEB%/PatternSkin/style.css
If this still does not work, contact the administrator who installs skins.
For further troubleshooting and feedback, go to TWiki:Plugins/PatternSkinDev.
layout.css and style.css attachment files for this topic (upload updated versions)
TWIKILAYOUTURL and TWIKISTYLEURL to other attachments, perhaps in another topic (your new skin topic?)
| Description: | Provides a CSS based default look and feel for TWiki - flexible and W3C-compliant |
| Screenshot: | |
| Base Name: | pattern |
| Skin Author: | TWiki:Main/ArthurClemens |
| Skin Version: | 01 Sep 2004 (v.1.0.10) |
| History: | |
| 01 Sep 2004: | v.1.0.10 - Fixes search results display problems on Windows Explorer |
| 28 Aug 2004: | v.1.0.9 - CAIRO RELEASE VERSION - Removed twikiTopic div from attach template |
| 24 Aug 2004: | v.1.0.8 - Fix for disabled TablePlugin; added plain.pattern.tmpl |
| 23 Aug 2004: | v.1.0.7 - Change to checkboxes in edit and preview screen; removed REVINFO at bottom; style changes |
| 22 Aug 2004: | v.1.0.6b - Removed files from zip that are now part of the TWiki distribution; removed .DS_Store files |
| 17 Aug 2004: | v.1.0.6 - Support for twikiMoved css class |
| 17 Aug 2004: | v.1.0.5 - Fix for not showing SEARCHSTRING |
| 16 Aug 2004: | v.1.0.4 - Fixes search results layout with noheader="on" |
| 14 Aug 2004: | v.1.0.3 - Update to attach template, css fix to edit template |
| 14 Aug 2004: | v.1.0.2 - Fixes print template, table paddings in topics, minor changes to style.css |
| 13 Aug 2004: | v.1.0.1 - Updated /data/TWiki/WebLeftBarPersonalTemplate and style.css |
| 08 Aug 2004: | Initial version (v.1.0.0) |
| Dependencies: | |
| Skin Home: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkin |
| Feedback: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkinDev |
| Download: | http://TWiki.org/cgi-bin/view/Plugins/PatternSkin |
twiki: twikiEditPage, twikiTopicAction, etcetera. ID names are not used, only class names, to allow multipe class names. See also: TWikiCss.
<body class="twikiViewPage">. All CSS elements specific to the view template thus can be defined as .twikiViewPage .someClassName.
<body class="twikiNoViewPage twikiEditPage">.
-- TWiki:Main.ArthurClemens - 08 Aug 2004USERLAYOUTURL and USERSTYLEURL settings to your home page
* Personal TWiki.PatternSkin CSS settings
* Set USERLAYOUTURL = %PUBURL%/%MAINWEB%/%WIKINAME%/layout.css
* Set USERSTYLEURL = %PUBURL%/%MAINWEB%/%WIKINAME%/style.css
* *Group* * [[SomeTopic][Link 1]] * [[AnotherTopic][Link 2]] * [[ThirdTopic][Link 3]]The left bar may contain a Go box instead of the top bar. Use:
* <input type="text" name="topic" size="16" />The personal left bar block is formatted like the rest of the left bar.
Add this to layout.css:This CSS is also attached to this topic, LowRes.css. To use this style, add this to your home page:.twikiMain { margin-left:0px; } .twikiLeftBar { margin-left:100%; } .twikiBottomBar { margin-left:1em; margin-right:0; padding:0; }Add this to style.css:.twikiMain { padding-left:1em; padding-right:1em; } .twikiBottomBarContents { padding-left:0em; }
* Personal TWiki.PatternSkin CSS settings
* Set USERLAYOUTURL = %PUBURL%/%SYSTEMWEB%/PatternSkinCustomization/LowRes.css
style.css (.twikiTopBarContents) or change the top bar height in layout.css (look for the comment setting the height of the top bar).
You can also choose to set a background image for the top bar. In style.css, add this to .twikiTopBar:
background-position:top left; background-attachment:fixed; background-repeat:no-repeat; background-image:url(http://absolute_path_to_your_image);and set the correct image file path.
style.css in these places:
html body {
font-family:"Lucida Grande", verdana, lucida, helvetica, sans-serif;
}
h1, h2, h3, h4, h5, h6 {
font-family:"Lucida Grande", helvetica, lucida, verdana, sans-serif;
}
textarea {
font-family:monospace;
}
input, select {
font-family:verdana,arial,sans-serif;
}
.twikiSeparator {
font-family:Arial,sans-serif;
}
.twikiEditPage .twikiSig input {
font-family:monospace;
}
html body {
... (keep)
}
html>body {
... (keep)
}
html body {
font-size:11px;
}
TABLEATTRIBUTES. Without TablePlugin (if not installed, or disabled in TWikiPreferences under DISABLEDPLUGINS), the tables have a default appearance that is hardcoded in Render.pm. Styles of topic text tables are not set in a style sheet. If you want to have control over the design of tables, for instance if you work with a style guide, you should add table styles under .twikiTopic. See for an example below.
.twikiTopic code in style.css:
.twikiTopic table {
border-collapse:collapse;
padding:0px;
border-spacing:0px;
empty-cells:show;
border:0px;
}
.twikiTopic table th {
background-color:#ccc;
padding:0.5em 1em;
}
.twikiTopic table td {
border:1px solid #eee;
}
/* override hardcoded font color */
.twikiTopic table font {
color:#1e5bbd;
}
.twikiTopic table th a:link,
.twikiTopic table th a:visited {
color:#1e5bbd;
text-decoration:none;
}
/* don't show hover background color because we have a table header background */
.twikiTopic table th a:hover {
background-color:transparent;
text-decoration:underline;
border-width:1px;
}
/* no underline if a sort indicator (line) is displayed */
.twikiTopic table th.twikiSortedDescendingCol a:hover,
.twikiTopic table th.twikiSortedAscendingCol a:hover {
text-decoration:none;
}
/* hide sort icons */
.twikiTopic table th img,
.twikiTopic table th a:link img,
.twikiTopic table th a:visited img {
display:none;
}
.twikiForm and .twikiAttachments. Text in these tables is set to wrap, so often the dates are wrapped to two lines. If you prefer to have text on one line and are not disturbed by an extra wide attachment table (or when you screen resolution is big enough), add this code to .twikiAttachments td, .twikiForm td {:
white-space:nowrap;
view use the style .twikiVersatileTable for, as the name says, tables with versatile functions. Versatile tables appear a little diffent in each template page (differences are created using multiple classes). Versatile tables are mostly used to format forms to highlight important parts and to dim less important parts. See style.css for specific settings for each template.
-- TWiki:Main.ArthurClemens - 28 Aug 2004USERSTYLEURL setting to your home page
* Plugins.PatternSkin CSS Settings (change colour palette)
* Set USERSTYLEURL = %PUBURL%/%MAINWEB%/%WIKINAME%/PatternSkinPalette.css
You can also change the colors in a modified version of style.css. See PatternSkinCustomization for instructions.
#e24628 |
header h1 |
||
#990000 |
header h2, h3, h4, h5, h6 |
||
#F3EDE7 |
background header h2 |
||
#8490A1 |
grayed out text .twikiGrayText |
||
#1e5bbd |
link :link, :visited |
||
#b4d5ff |
background hover link (note: the link color becomes #1559B3 on hover) :link:hover |
||
#666666 |
visited link in topic text .twikiTopic a:visited |
||
#7A4707 |
code pre, code, tt |
||
#000000 |
body text |
#f8f8f8 |
page body |
||
#ffffff |
main page .twikiMain |
||
#dddddd |
main page border .twikiMain |
#880000 |
body text in left bar .twikiLeftBar |
||
#22638C |
top border left bar contents .twikiLeftBarContents |
||
#DFEDFD |
personal left bar background .twikiLeftBarPersonal |
||
#cccccc |
personal left bar border .twikiLeftBarPersonal |
#98A2B0 |
action buttons background view page .twikiTopicAction |
||
#ffffff |
action buttons text and links | ||
#cccccc |
action buttons links bottom border |
#22638c |
action buttons background non-view page .twikiTopicAction |
||
#698FA8 |
action buttons links bottom border | ||
#DFEDFD |
action buttons secondary row (top) background .twikiTopicActionSecondary |
||
#22638c |
action buttons secondary row text | ||
#A3BCF1 |
action buttons secondary row links bottom border | ||
#D4E6FC |
action buttons submit options .twikiSubmitOptions |
||
#B6C6D9 |
action buttons submit options border .twikiSubmitOptions |